Skip to main content
3 of 3
added 140 characters in body
Phil Hawthorn
  • 16.8k
  • 4
  • 49
  • 76

You can query the rather misleadingly named WebLink SObject to find all of the information you need about a custom button:

Select Width, Url, SystemModstamp, ShowsStatus, ShowsLocation, ScontrolId, 
RequireRowSelection, Position, PageOrSobjectType, OpenType, NamespacePrefix, Name,
MasterLabel, LinkType, LastModifiedDate, LastModifiedById, IsResizable, 
IsProtected, Id, Height, HasToolbar, HasScrollbars, HasMenubar, EncodingKey, 
DisplayType, Description, CreatedDate, CreatedById 
From WebLink
Where PageOrSObjectType = 'ObjectOfInterest__c';

Edit: these aren't the droids you are looking for....this will only return information about Buttons and Links, but alas not Actions. :(

Phil Hawthorn
  • 16.8k
  • 4
  • 49
  • 76