Friday, April 22, 2011

How to create an Email Button with a record link

Hi Gang,

Here's a little nugget I just wanted to pass on. It's a piece of code that you can use to create a custom button on the Record Detail Page in SFDC that will open the users default email program and create an email with a URL Link to the record in SFDC, and the SFDC Object and Record Name in the Email Subject.

It comes in handy when one of your more Technology Challenged users is having a problem with a specific record and you don't feel like having that awkward "What is a URL and Record ID???" conversation with them.

Label: Email

Name: Email

Object Name: Opportunity

Display Type: Detail Page

Button Behavior: Execute JavaScript

OnClick JavaScript: javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href);

No comments:

Post a Comment