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
Bayarea 101Bayarea 101 

Need to create a custom button

I need to create a custom buttonon on opportunity object. When a user clicks this buttton it should gemerate an email to SFDC Que. How can do aachieve this.
James LoghryJames Loghry
Follow sfdc_fox's example in the following post:

ou'll likely need to update it to handle a Queue / Group of Users rather than a single contact, and also update the code to handle an Opportunity instead of a Contact record.  Hope that helps.
Jason Curtis NBSFDGJason Curtis NBSFDG
You could also create a flow to send out a email, and then hook it to a button. Pages 40-42 cover setting up an email:

Andy Fawcett has a great blog post about something similar:

And some info from the Success Community:

Good luck!