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
ramesh babu 114ramesh babu 114 

i have 100 lines of i want to execute 50 lines code through apex classe and remaining 50 lines code through triggers how can we do this

i have 100 lines of i want to execute 50 lines code through apex classe and remaining 50 lines code through triggers how can we do this
Suraj TripathiSuraj Tripathi
Hi ramesh babu 114,

For this make 2 methods in class and put your 50 lines in each of the method and call one method through trigger and other method through class.

Regards,
Suraj
ramesh babu 114ramesh babu 114
thank u sir