Delayed trigger

Posted by tehilac@safeguard.co.il on 02-Aug-2017 02:44

Hello! 

I have Delayed trigger- runing 2 hours after I creat a record- the trigger type is object script. 

During these two hours one of my fields changed from: false to true- this field determines whether the code will run.

I noticed that the code ran only in relation to the field value at the time the record was created and did not refer to the change made during the two hours from when the record was generated and until the code ran. Is it a bug or is it built-in?

Thanks! 

Tehila

Posted by tehilac@safeguard.co.il on 07-Aug-2017 01:37

Hello Anoop! Thanks for your answer!

I used object script...

All Replies

Posted by Anoop Premachandran on 04-Aug-2017 03:14

How have you configured this - "this field determines whether the code will run"

If you have used "On Field Change" then this will be evaluated at the time of trigger queuing and not at the time of trigger execution (2 hours later)

Posted by Anoop Premachandran on 04-Aug-2017 03:21

For achieving some conditional logic at execution time, I suggest you add some logic at beginning of the object script itself

Posted by tehilac@safeguard.co.il on 07-Aug-2017 01:37

Hello Anoop! Thanks for your answer!

I used object script...

This thread is closed