I have the need to add custom actions on the Record List Pages from our objects and I cannot be able to find anything related to this and I'm just wondering if it's possible. enter image description here

Only we have New and Import actions, and I would like to have custom ones in this page.



You need a Custom List Button for this: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_custom_button.htm (the examples are shown in Salesforce Classic, but it works similarly in Lightning Experience)

Note: your custom buttons will not appear on the 'Recently Viewed' list - they are only available on one of the actual list views for that object.

| improve this answer | |
  • Thanks for answering. Custom List Buttons are really limited --- 1) Actions which are type: lightning component are not available to add on the "Search Layout" tab for the object (others like "update a record" it is to be added as QuickActions) ---- 2) Custom List Buttons can't be overridden by a lightning component (only is available URL, onClick Javascript & VisualForce Page) ----------- I can go though step 2 but I can't be able to see any visualforce page available for it - always is empty list - but beside this, I don't like the idea to add lightning components on visualforce pages. – danigonlinea Feb 27 '18 at 16:54
  • re: 2) your visualforce has to have a standard list controller matching the object you want to use it on, i.e.: standard controller for the same object and the recordSetVar attribute set. – Pawel Fronczak Mar 1 '18 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.