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
anvesh@force.comanvesh@force.com 

Can we call trigger in apex?

Can we call trigger in apex?

Best Answer chosen by Admin (Salesforce Developers) 
TejTej

you can invoke the trigger by doing a dml in your class, which automatically fires the trigger.

All Answers

imutsavimutsav
I don't think you can call trigger from apex class. But you can call apex class from Trigger.

Thanks
Utsav

[Do mark this answer as solution if it works for you and give a kudos.]
TejTej

you can invoke the trigger by doing a dml in your class, which automatically fires the trigger.

This was selected as the best answer