+ Start a Discussion
shweta chadha 4shweta chadha 4 

How to create trigger files for custom objects via apex


How to create trigger files dynamically for custom objects via apex?

Thanks, Shweta
Best Answer chosen by shweta chadha 4
Hi Shweta,

Standard Salesforce does not allow creating Triggers from Apex. However, there is an Apex Wrapper for the Salesforce Metadata API (https://github.com/financialforcedev/apex-mdapi) that you can use to do this.

Kindly mark this answer as best answer if it resolved your query.
Thank you