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
Sambasiva NallagachuSambasiva Nallagachu 

Hi, Email Alert for an Approval Process, When i Click on the Particular Link(i.e Approve or Reject) it Should be approved or Rejected based on the link you are Clicking. This action should be done without redirecting to the Approver's Salesforce Org.

I should not get like this
Rajesh3699Rajesh3699
Hi,

I think we can go with the below approach, but user has to be redirected for the new page ( VF page) but not in the same email template / alert

1. Create a VF page and host the page on the Site - so that page can be accessed publicly - without loggin in to salesforce
2. There should be a link in the email template, once the recipient clicks on that link, system should redirect to the above VF page with the Id of the record to be approved / rejected
3. Create 2 links Approve / Reject, and based on the action of the user.
4. You perform the action in the VF controller - based on the action of the user in step 3

Hope this helps,

Thank You,
Rajesh Adiga P.