+ Start a Discussion
shweta chadha 4shweta chadha 4 

How to create trigger files for custom objects via apex

Hi,

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

Thanks, Shweta
Best Answer chosen by shweta chadha 4
so_mayankso_mayank
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