+ 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: http://salesforce.stackexchange.com/questions/14819/email-button-email-template

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: https://na10.salesforce.com/help/pdfs/en/salesforce_vpm_implementation_guide.pdf

Andy Fawcett has a great blog post about something similar: http://andyinthecloud.com/2014/02/19/clicks-not-code-with-visual-flow-custom-buttons/

And some info from the Success Community: https://success.salesforce.com/answers?id=90630000000glESAAY

Good luck!