Creating an Apex Trigger for a Custom Object as a Step
A trigger is Apex code that executes before or after specific data manipulation language (DML) events occur, such as before object records are inserted into the database, or after records have been deleted. A list of all triggers in your organization is located in Setup under Apex Triggers. You can invoke Apex through the use of triggers. Apex triggers are stored as metadata in the application under the object with which they are associated.
A trigger is Apex code that executes before or after the following types of operations:
- Insert
- Update
- Delete
- Merge
- Upsert
- Undelete
For Conga Orchestrate to use a custom object you've created, you must create a trigger and test class in a sandbox environment and deploy them to your production environment. Salesforce does not allow you to create an Apex trigger or Apex class directly in a production org. Refer to Deploy from Sandbox with Change Sets for instructions on the deployment process.
To create Custom Object as Step trigger in a sandbox environment
Follow these steps to create the trigger in a sandbox environment: