August 8, 2014

How to get all the trigger names from Salesforce organization?

Sample SOQL:

SELECT Id, Name, TableEnumOrId FROM ApexTrigger



For additional columns/fields, check the below link

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_apextrigger.htm

6 comments:

  1. How to get trigger names and the objects on the trigger

    ReplyDelete
    Replies
    1. Use TableEnumOrId to get the object associated to the trigger.

      Delete
  2. how to query the Trigger name, object name and Version on trigger

    ReplyDelete
    Replies
    1. Use TableEnumOrId to get the object associated to the trigger.

      Delete
  3. how to get list of ApexClass?

    ReplyDelete
    Replies
    1. Use ApexClass.
      https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_apexclass.htm

      Delete