function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
GV1GV1 

How to call / initiate a approval process from click of a button on a standard object

Need overview on the below requirement.

 

Need to Create a button on the Account page where a user can click to get themselves added to the account Team.

Button Name: "Add to Account Team". Once the button is clicked, a workflow approval process should start. An email should be sent to Account owner. Once the account owner approves, the individual that wanted to be added to the team is added. If declines, an email goes out saying he is declined.

Avidev9Avidev9
You can create a button which will load a VF page
And from the VF page controller (action method) you can invoke the Approval Process and bring back the user to detail page.(dont worry there wont be much lag as it seems )

You can have a look at this example to invoke approval process using apex http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_process_example.htm