previous object in async business rule

Ashwini Jadhao
Giga Guru

hi,

I have question ,why Previous object is not accessible in async business rule?

I had searched this on community but I didn't get it.plz tell me why previous object is not accessible...

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ashwini,

previous object is not accessible in an async business rule because async business rule doesn't run immediately when record is inserted/updated instead it runs at specific time in backend after the transaction of insert/update happens i.e. asynchronously; hence system won't know what was the previous value for any field hence previous object won't make sense in that business rule

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

6 REPLIES 6

VaranAwesomenow
Mega Sage

I made a 2 part video providing details, examples and possible pitfalls and fixes.

https://youtu.be/0wYZezSL6Ss

VPS21
Giga Contributor

The "previous" object is not accessible in an asynchronous (async) Business Rule because an async rule runs after the original database transaction is complete. Since the transaction is over by the time the async rule executes, the system doesn't have access to the record's state before the changes were made, making the "previous" object unavailable.