- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:28 AM
Hello,
Could anyone please tell me the difference between After BR using gs.eventQueue() and Async BR.
Is there any difference or is it the same. Explanation with example will be appreciated.
-Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:39 AM
After BR + event + script action == Aysnc BR
Both will run asynchronously and won't impact the user transaction and user experience
explanation here
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:56 AM
yes that's correct.
After BR + event + script action-> the event is triggered and once it gets processed then the script action runs and does the work
It can be an alternative but 1 good example is consider you want to send email after 4 hours of the record getting updated. In this case you can use eventQueueScheduled() function and ensure the event is triggered after 4 hours so that the work is done after 4 hours once event is processed
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 04:53 AM
HI @Priyanka_Ghosh ,
I have explained it with real time example in this video: https://youtu.be/VLwD4yt_AY4?si=BzdOq-tqvF-7ge-X
Do check this thread: https://servicenowwithrunjay.com/async-business-rule-in-servicenow/
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------