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
Rocks_SFDCRocks_SFDC 

Approval Process By Using Apex

Hi Team,

 

we had a requirement on the Approval Process.

 

We we click on the custom button on Account Detail Page, we are adding logged in user to Account Team of that Account with some role "X". Then we need to write the approval process such that, when ever we added looged in user to Account Team member for account, i want to send an approval to account owner. Once he/she approved it, i want to change the role to "Y".

 

Please suggent an solution fir above functionality.

 

Thanks in Advance,

Anil 

Best Answer chosen by Admin (Salesforce Developers) 
souvik9086souvik9086

Please check the below links

 

http://shivasoft.in/blog/salesforce/dynamic-approval-process-based-on-the-apex-and-trigger/

http://boards.developerforce.com/t5/Apex-Code-Development/Approval-process-through-Apex-trigger-issue/td-p/165373

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

All Answers

souvik9086souvik9086

Please check the below links

 

http://shivasoft.in/blog/salesforce/dynamic-approval-process-based-on-the-apex-and-trigger/

http://boards.developerforce.com/t5/Apex-Code-Development/Approval-process-through-Apex-trigger-issue/td-p/165373

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

This was selected as the best answer
ryanjuptonryanjupton

I've also put together a video that describes calling an approval process from Apex which might help: http://www.youtube.com/watch?v=O8XOpee8LV4