Linky Buttons

When dealing with end users I have been asked for many features that, well, don’t make any sense. For example I have had many end users ask for a way to quickly make tasks or activities because the native Salesforce way ‘takes way to long to populate all of the fields on the page,’ after hunting around for a bit I found some awesome resources that gave ideas on how to create some awesome linky buttons that can populate a lot of these fields upfront when clicked, and to make the deal even sweeter could show a pretty little icon for the users viewing pleasure.

So without further hesitation here is a quick overview on how to set up the buttons:

  1. Upload a few of your favorite icons to the documents tab (you can find a bank of icons when you search for ‘Salesforce mini icons’)  **Things to Remember** – When uploading these icons, A) make sure the folder that they are being uploaded to is set as read only and available for all users, B) upload each icon separately, C) View each icon after upload and copy the Id of the Icon from the browser.    DocumentURL
  2. Create the Formula Field with the type as text, copy and past the following into the formula box:
  • For accounts, and any other object besides contact and lead, use the following code:

HYPERLINK(‘/00T/e?title=Call&who_id=’ & $User.Id & ‘&what_id=’ & Id & ‘&followup=1&tsk5=Call&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Log a Call’))
& ‘ ‘ &
HYPERLINK(‘/00T/e?who_id=’ & $User.Id & ‘&what_id=’ & Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Create Task’))
& ‘ ‘ &
HYPERLINK(‘/00U/e?who_id=’ & $User.Id & ‘&what_id=’ & Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Create Event’))

  • For Contacts only, use this code:

HYPERLINK(‘/00T/e?title=Call&who_id=’& Id & ‘&followup=1&tsk5=Call&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Log a Call’))
& ‘ ‘ &
HYPERLINK(‘/00T/e?who_id=’& Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=01540000000jZsM’, ‘Paste Icon Id Here’, ‘Create Task’))
& ‘ ‘ &
HYPERLINK(‘/00U/e?who_id=’& Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=01540000000jZsW’, ‘Paste Icon Id Here’ ,’Create Event’))
& ‘ ‘ &
HYPERLINK(‘/_ui/core/email/author/EmailAuthor?rtype=003&p2_lkid=’ & Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Create Email’),’_self’)

  • For Leads only, use this code:

HYPERLINK(‘/00T/e?title=Call&who_id=’& Id & ‘&followup=1&tsk5=Call&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Log a Call’))
& ‘ ‘ &
HYPERLINK(‘/00T/e?who_id=’& Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Create Task’))
& ‘ ‘ &
HYPERLINK(‘/00U/e?who_id=’& Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Create Event’))
& ‘ ‘ &
HYPERLINK(‘/_ui/core/email/author/EmailAuthor?rtype=00Q&p2_lkid=’ & Id & ‘&retURL=’ & Id, IMAGE(‘/servlet/servlet.FileDownload?file=Paste Icon Id Here‘, ‘Create Email’),’_self’)

3. Now add the cool new buttons to the page layout.

About SalesforceChase

Salesforce Architect working at Salesforce.org View all posts by SalesforceChase

2 responses to “Linky Buttons

Leave a comment