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
Deepak PGDeepak PG 

How do I create approve and reject buttons inside of an email template

How do I create approve and reject buttons inside of an email template. These emails are going to C level executives to approve the price, so the alerts goes to  there inbox, with the help of button they can approve or reject the pricing.
AbhishekAbhishek (Salesforce Developers) 
In that case, you'll have to create a Visualforce Page Email Template where you can add Approve and Reject Buttons and use ApprovalProcessController for approval/rejection.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_approval.htm

That is the only way.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Deepak PGDeepak PG
Hi Abhishek, 

Thanks for sharing, is it possible to share the codes for Accept and reject buttons.

Regards,
Deepak
AbhishekAbhishek (Salesforce Developers) 
Deepak there is no standard code for it,

It's complete customization Please refer to this,

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_approval.htm

If it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.