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
mikkamikka 

Trigger that has scheduled script on it...

Hi guys, Just want to ask if it is possible possible to create a trigger that allows running of a scheduled script, i.e. After the record is saved, the trigger will fire that will check if the SR/Activity Due Date is the same as the Create Date. If true, then it will compute for the "two hours before the Due Date" and schedule an email to be sent at that time. Pseudocode examples will be highly appreciated. Thank you very much!!!!
Jeremy_nJeremy_n

That's not really a Trigger kind of thing. I would recommend looking into a Workflow Rule that does a delayed email notification or Task. If that can't handle it, maybe a regularly scheduled job could look for your due dates coming up.

 

Jeremy