Thursday, April 2, 2020

How to query custom buttons/links info using SOQL in salesforce

Salesforce internally stores the all custom buttons and custom links and URL buttons info in Weblink object.

SOQL

Select Id, Name, LinkType, PageOrSobjectType From WebLink where NamespacePrefix = ''

you can filter Link type
URL
sControl
javascript
page
flow—Reserved for future use.

Output

1 comment:

  1. can you please help me with the soql for the Standard buttons visibility by profile

    ReplyDelete