2

I am trying to understand how to manipulate triggers via the Rest API (turn them on and off). What is the difference between the "ApexTrigger" and "ApexTriggerMember" object? Does any one have any insights into updating (via PATCH method or other) these objects status?

Thanks in advance!

1 Answer 1

5

It is all in the documentation:

ApexTriggerMember Represents the working copy of an Apex trigger for editing, saving or compiling in a MetadataContainer.

ApexTrigger Represents an Apex trigger.

Note Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to create or update them using the API. Instead, use the Force.com Migration Tool, the Salesforce user interface, or the Force.com IDE to create or update Apex classes or triggers.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .