Create Button for List View

By | September 24, 2014

Salesforce provides some built in buttons while showing the list of records. Similarly we can add additional buttons for our custom functionality. We had a requirement wherein we needed to validate the records in the list with external web services. For this we created a custom button in the list view so that when the records are filtered using the view, we can validate all the records at once by clicking on that button.

Read More: Why is Salesforce integration with Sage ERP best for an organization?

You can create the custom button in the following manner –

  1. Click on Create >> Objects. Now click on the object for which the custom button needs to be created.
  2. In Buttons, Links and Action section, click on New Button or Link
  3. Enter Label, Name and Description for the custom button,
  4. Select “List button” in display type. Select the behavior as per your requirement; we are selecting “Execute JavaScript” as we are doing a javascript validation.
  5. Select content source (Here we are selecting On Click JavaScript).
  6. Now add the functionality which needs to be performed on click of this button.
  7. Check syntax and then click on save.

Now, you can see your newly created custom button in the Buttons, Links and Actions section, now we need to add this button to the list view.

Steps to Add Custom Button to the List View

  1. Click on Create >> Objects. Now click on the object.
  2. In Search layout section, edit the list view layout.
  3. Here you will see your new button listed in the list box, add this button to the list view and click on save.

Now, if you open your list view for that object, you can see your new button added to the screen as shown below –

Create Button
Custom Button Added

About Us
Greytrix – a globally recognized and one of the oldest Sage Development Partner and a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners and Sage PSG across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce Sage integration for Sage X3Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data MigrationIntegrated App developmentCustom App development and Technical Support business partners and end users.
Salesforce Cloud CRM integration offered by Greytrix works with Lightning web components and supports standard opportunity workflow. Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star rated app listed on Salesforce AppExchange.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button.

For more information on our Salesforce products and services, contact us at salesforce@greytrix.com. We will be glad to assist you.

Related Posts