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
Rajat BurmanRajat Burman 

I have to add a Opt out button in email template to change opportunity stage.

Hi Experts,

I have added a button "opt-out" in the email template.
This email will be sent to people and when they click the opt-out button, then the stage in opportunity should change to opt out.
How can do this

Please help.
Thanks.
Sumit Kumar Singh 9Sumit Kumar Singh 9
Hi Rajat,
If I get your question correctly, then you send an email with button "opt-out". When the end user(user who reads the email) clicks on this buttion, then you want to change the stage of opportunity. Right!

You can create a public page i.e site page, on this page you can have action to update the opportunity.

When you are sending the email, send the opportunity Id in the background, when user clicks on the button he will get redirected to above page where update will happen.

Thanks,
Sumit Kumar Singh