expose picklist of salesforce buttons for an object?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
Is there a way to expose on a runtime page the list of custom SF Buttons/Links for a given object? We are building a page to allow users to submit Conga Template requests and would like for them to be able to see what available buttons are for Opportunities and Accounts to indicate which button to use or be able to determine that we will need a new button. 

I think there is an answer within using the metadata API and a REST model connection, but was hoping since that's something you do in the page builder there might be an easier way.
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
You can query the Weblink object with a Condition on the "PageOrSobjectType" field to limit to certain object types. I'm not sure if this object is visible to all users, though --- test it out with your user profiles. Otherwise you might need to use a REST Model to expose the list of objects.