Reputation: 31
i have to write a query to get all the approval processes on a specific xyz__c custom object
select Name from ProcessDefinition
the above query display all objects approval processes .but i need specific approval process on a particular object
Upvotes: 1
Views: 2809
Reputation: 2759
The TableEnumOrId
field is the one you need to query:
Specifies the object associated with the approval process, such as Account or Contact.
Hence
SELECT Id, TableEnumOrId FROM ProcessDefinition
Upvotes: 2