---
schema_version: "1"
id: 9397c5d7c399f826665ae1e8b8de413709b40f5399c1ab27f56320c95941d363
title: Custom Button and Link Samples
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/links_useful_custom_buttons.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a7827985f51e0c94a1d369066fb204b69d9ade8138f5439c340ea98b82d80523
description: Use samples of custom Salesforce buttons and links to determine whether they can work for you.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Custom Button and Link Samples

Use samples of custom Salesforce buttons and links to determine whether they can work for you.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
      <colgroup>
        <col>
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p>Custom buttons and links are available in: <strong>All</strong> Editions</p>
            <p style="margin-bottom:0;">Visualforce
              pages and s-controls are available in: <strong>Contact Manager</strong>, <strong>Group</strong>,
              <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>,
              and <strong>Developer</strong> Editions
            </p>
          </td>

        </tr>
      </tbody>
    </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" id="d73636e85">User Permissions Needed</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d73636e85 ">To create or change custom buttons or links:</td>

          <td class="slds-cell-wrap" style="vertical-align:top;" headers="d73636e85 ">Customize Application</td>

        </tr>
      </tbody>
    </table>

- **[Custom Link Example: Link to Documents](https://help.salesforce.com/s/articleView?id=platform.custom_links_example_linking_to_documents.htm&release=264.0.0&type=5)**  
    Use custom links to reference documents from a Salesforce record detail page.
- **[Custom Link Example: Link to Files in Chatter](https://help.salesforce.com/s/articleView?id=platform.custom_links_example_linking_to_files.htm&release=264.0.0&type=5)**  
    Use custom links to reference files from Chatter.
- **[Custom Link Example: Link to Reports](https://help.salesforce.com/s/articleView?id=platform.custom_links_example_linking_to_reports.htm&release=264.0.0&type=5)**  
    Use custom links to run reports with filtered results from a Salesforce record detail page. For example, let’s say you frequently run a mailing list report for the contacts related to an account. You can create a custom link for accounts that links directly to a report that is automatically filtered to the account that you’re viewing. In this case, your custom link must pass the account’s unique record ID to the report.
- **[Custom Button Example: Mass Delete](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_mass_delete.htm&release=264.0.0&type=5)**  
    This example creates a JavaScript custom button for Salesforce Classic that can be added to activity-related lists and list views and allows users to delete selected records at the same time.
- **[Custom Button Example: Display Alerts](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_displaying_alerts.htm&release=264.0.0&type=5)**  
    This example creates a button that opens a window with a welcome message containing the user's first name.
- **[Custom Button Example: Clone Records](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_clone_records.htm&release=264.0.0&type=5)**  
    The clone button is available for most standard objects. When a clone button is not available by default for a standard or custom object, you can create a custom clone button or link. This example creates a button that passes the field values of the record you’re on to a record create page.
- **[Custom Button Example: Get Record IDs](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_record_ids.htm&release=264.0.0&type=5)**  
    This example creates a button that opens a window listing record IDs for user selected records. Getting record IDs is useful when testing to ensure that you have the correct records before processing them further.
- **[Custom Button Example: Pass Record IDs to an External System](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_passing_record_ids.htm&release=264.0.0&type=5)**  
    You can use Salesforce record IDs as unique identifiers for integrating with an external system. This example creates a button that calls a Visualforce page to determine the record IDs of selected records and passes them in a URL query parameter to an external Web page called www.yourwebsitehere.com.
- **[Custom Button Example: Record Create Page with Default Field Values](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_create_record_dfv.htm&release=264.0.0&type=5)**  
    Construct custom buttons and links that pass default field values to a record create page. This feature applies to Lightning Experience in all editions. This feature doesn’t apply to Lightning Out, Experience Builder sites, or the Salesforce mobile app.
- **[Custom Button Example: Reopen Cases](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_reopening_cases.htm&release=264.0.0&type=5)**  
    This example creates a button that can be added to cases related lists so that users can reopen several cases on an opportunity at once.
- **[Custom Link Example: International Maps](https://help.salesforce.com/s/articleView?id=platform.links_useful_custom_buttons_international_maps.htm&release=264.0.0&type=5)**  
    This example creates a link that displays a country-specific Google map.

#### See Also

- [Define Custom Buttons and Links](https://help.salesforce.com/s/articleView?id=platform.defining_custom_links.htm&release=264.0.0&type=5 "Define the action that occurs when a user clicks a custom button or link. Custom buttons and links can streamline actions within Salesforce or integrate Salesforce data with external URLs, applications, or systems.")