function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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 ( that you can use to do this.

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