Buttons & Links

Why create a custom button or link?

Custom buttons and links can be used to add new functionality to your pages.

Understanding Custom Buttons and Links
[Should / Short / Salesforce.com]

Examples of buttons and links:

Useful Custom Buttons and Links
[Should / Short / Salesforce.com]

Creating a Custom Report Link
[Should / Medium / shellblack.com]

What types of buttons and links are available?

There are 3 different types:

  1. Detail Page Link
    Login to Salesforce to View
  2. Detail Page Button
    Login to Salesforce to View
  3. List Button
    Login to Salesforce to View
    Login to Salesforce to View

Detail Page Links and Detail Page Buttons perform the same function, except that standard Detail Page Buttons can be overridden.  Buttons are generally used for more  commonly used functionality (e.g. Edit), while custom links are generally used for less prominent functions (such as performing a web search with account information).

While detail buttons and links will reference data from a single record, list buttons can perform actions on multiple records at once.  One thing to note is that list buttons are defined on the target object.  For instance, if you want to add a list button to the account page layout to merge contacts, the merge contacts button would be defined on the contact object, even though the button is added on the account page layout.

17 Responses to “Buttons & Links”

  1. mattl September 11, 2017 at 10:39 am #

    Hi John,

    with reference to the below tutorial on creating a link on the Account record that maps the company’s address onto Yahoo Maps


    at 2:05 the instructor states that we first “enter the text shown” which is an http address. I want to do the same but for google maps – what is that address? Is it a standard address that googlemaps/yahoo maps has? where can I find it.


  2. piyushsharma09 February 20, 2017 at 12:22 am #

    Is this topic useful for ADM 201 exam..?

    • jcohen2014 March 2, 2017 at 2:16 pm #

      I had the same question. I do not believe this was in the study guide and seems out of scope for the admin exam.

      • JohnCoppedge March 2, 2017 at 3:10 pm #

        Probably not heavily weighted but yes – custom buttons/links have typically been considered in scope for the admin exam

  3. Mandy November 2, 2016 at 6:57 pm #

    Hi Everyone,

    I tried to create a custom link to view a dashboard that shows data for a custom object named ‘Festival’. I wanted to configure the link in a way that Salesforce filters the dashboard dynamically on the basis of the Record ID of the Festival object a user is viewing. I tried to follow the ShellBlack tutorial for creating custom links for viewing automatically-filtered reports except that I did the same thing for dashboards instead of reports, but the automatic filtration is not functioning with dashboards – the custom link would take me to the unfiltered dashboard, although I did specify Record ID as a filter criterion (see below). Could anyone offer input on what I may have done wrong?

    /01Z36000000OBoe/e?retURL=%2Fdash%2FdashboardServlet.apexp?pv0={!Festival__c.Id} => This is the URL I typed into the formula filed for the custom link.

    ?pv0={!Festival__c.Id} => This is what I used as a filter criterion.

    https://na30.salesforce.com/01Z36000000OBoe/e?retURL=%2Fdash%2FdashboardServlet.apexp =>This is the link to the existing target dashboard; the dashboard currently has one filter option specified and the filter option is: Festival ID equals ‘blank’.


  4. elachkar.omar@gmail.com October 4, 2015 at 3:02 am #

    Hi John ,

    I just have a suggestion .It would be better if this link ” Useful Custom Buttons and Links
    [Should / Short / Salesforce.com] ” would actually take you to “https://help.salesforce.com/apex/HTViewHelpDoc?id=customize_enterprise.htm&language=en_US ” instead of the current one ! .

    Great job on putting this together overall .

    Thanks !

  5. Algy George August 21, 2014 at 5:16 pm #

    Really nice section.

  6. Alison Fisher July 16, 2014 at 1:22 am #

    Will buttons and links be on the exam? I don’t remember learning about these in the SF admin course for beginners.

  7. Thomas Seltz May 1, 2014 at 3:17 am #

    Minor typo in the last paragraph: “One thing to note is that list buttons are defined the on the target object.”

  8. Allyson Clark March 15, 2014 at 9:09 pm #

    The shellblack report link trick is very cool. I just added two to my org’s account page. Thanks!

    • Munira Majmundar October 26, 2015 at 2:42 am #

      I did the same in my Dev. Org! It is really cool and a great time saver!

  9. Larry Deckel September 29, 2013 at 5:21 pm #

    Looks like your site is being hit by spam comments 🙁
    This happening more and more to blog based sites (we had a rash of it in zendesk last month).

    Hope you can find a way to block these insidious users.

Leave a Reply