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

Apex Scheduler with more parameters.


I am planning to use apex scheduler for scheduling of automated emails. I don't want to use a single template for this. I want to use a template based on the input parameter. Is there any way I can get the apex scheduler so that I pass 1 extra parameter and I can decide which email template can be used for that parameter.


Right now we have an option to pass the three parameters like the below.

system.schedule('Merge Job', sch, m);


Can I pass a fourth parameter?

SPDSPD can pass only three parameters to system.schedule method...