How to prevent business rule from inserting record other than setAbortAction method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 03:33 AM
hi all,
How to prevent business rule from inserting record other than setAbortAction method.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 03:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 03:47 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 03:40 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2023 03:48 AM
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.