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

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

Async BR doesn't gets executed like before/after business rules.

Before/After BR gets executed with the transaction, so they have previous value of the record also. Once the transaction is complete the 'Previous' object is gone. And Async BR gets executed as an independent job with the event processing, it is not part of the original transaction and by the time this gets executed the transaction is over, hence previous object is lost.

 

Hope that explains.

 

Please mark my answer correct/helpful if it solves your issue.
-Anurag

-Anurag

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

Ashwini Jadhao
Giga Guru

Thank you Ankur for immediate reply it is very helpful.

Hi Ashwini,

Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

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