How to prevent business rule from inserting record other than setAbortAction method

Obito
Tera Expert

hi all,

How to prevent business rule from inserting record other than setAbortAction method.

 

Thank you

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Is there a specific reason for asking to avoid/working around setAbortAction? I think knowing your reason for that, helps understanding your question and brainstorming for alternatives.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

Thank you for the replay.

I am finding an alternate way because I have to use this BR on table where data is coming from integration.

while inserting data I have to check if the same data is already present or not. If data is present I do not want to insert current data into the table. I have tried setAbortAction but it send back 403 error to the third party (Target) when record (data) is already present  

PS: for some reasons I can not use coalesce and onBefore transform script.

Sruthi17
Kilo Sage

Hi,

 

"setAbortAction" should be the best way to abort any database operation (insert/update).
Please explain your issue in detail like why you are looking for an alternate way.

 

Mark my answer correct/helpful if this helps you 

Hi Sruthi,

Thank you for the replay.

I am finding an alternate way because I have to use this BR on table where data is coming from integration.

while inserting data I have to check if the same data is already present or not. If data is present I do not want to insert current data into the table. I have tried setAbortAction but it send back 403 error to the third party (Target) when record (data) is already present  

PS: for some reasons I can not use coalesce and onBefore transform script.