- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 04:05 AM
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...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 04:09 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 04:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 04:09 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 04:18 AM
Thank you Ankur for immediate reply it is very helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2019 11:22 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader