From the Visualforce Page, we call a method that inserts a user record and then subsequently calls three future methods to complete the user onboarding process.
- insert user record
- Call 1st future method to add PermissionSet
- Call 2nd future method to do additional work
- Call 3rd future method to do some other work
Our requirement is to inform the user after all the future work is completed. If there are any errors reported by the future methods, we need to report accordingly. How do we track the execution status of the future methods and notify users of success/failure? Thanks.