stop Async Business rule to run on insert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 03:26 AM
Hello All,
I have one Async business rule on Incident and I want to run it only on update . If i uncheck insert (or) even if i add !current.isNewRecord() in condition of that BR, it is still getting triggered when incident is created. Please help me know how to stop this async BR from running on insert of incident record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 03:43 AM
why not uncheck the Insert checkbox?
If you uncheck the insert checkbox it won't trigger
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 04:04 AM
Hello Ankur,
Thanks for reply.. i have already unchecked insert .. and i am suspecting that there are some other updates happening on incident(may be through other BRs) so my BR is getting triggered multiple times at the time of insert even if that insert checkbox is unchecked. Do you happen to know cause of those type of issues?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 04:17 AM
can you try this script
if(current.operation()=="insert")
{
current.setAbortAction(true);
}
Hope this helps
Mark the answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 04:32 AM
yes please check some other BR is causing this.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader