changes(), changesTo(), changesFrom() working in async BR when added in condition field of the BR. Is this an expected behaviour?

um30
ServiceNow Employee
ServiceNow Employee

changes(), changesTo(), changesFrom() working in async BR when added in condition field of the BR. Is this an expected behaviour?

11 REPLIES 11

Anurag Tripathi
Mega Patron
Mega Patron

Hi Upasana,



Async BR always runs 'after' the transaction, and it does not have access to 'previous' object as there is no way to define when it will run and there might me more updates to the record in the meanwhile.



But the condition is evaluated instantly hence in the condition changeTo and changesFrom work there.So at the time when condition is evaluated it knows what is the change exactly(from and to)


Once qualified the script is added to run into pipeline.


-Anurag

I did not understand the question initially (condition part). What you are suggesting makes sense.