stop Async Business rule to run on insert

RC19
Tera Contributor

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.

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@RC19 

why not uncheck the Insert checkbox?

If you uncheck the insert checkbox it won't trigger

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

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?

@RC19 

can you try this script 

if(current.operation()=="insert")
{
current.setAbortAction(true);
}

Hope this helps 

Mark the answer correct if this helps you 

Thanks

@RC19 

yes please check some other BR is causing this.

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