Do Business Rules execute when a record is updated using REST Integration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2017 01:32 PM
We have a business rule that sets the Resolved date field in the incident table when a incident record is updated to the state of Resolved. We also have an integration with a vendor where when an Incident is created in our SN environment, it will create an Incident in their non-SN ticketing system. This integration is bi-directional so that we get updates based on the work they are performing. However, when they set an Incident in our SN environement is resolved using the integration, the Resolved date field is not being set. My assumption is that Business Rules only execute when an action is performed in the UI and not through integration, but that is just a guess. Anyone have any thought/idea on this?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2017 01:35 PM
It depends on the endpoint of the rest message. If the integration is leveraging import sets, the transform map has a "Run business rules" checkbox and if unchecked business rules will not run. Otherwise business rules should run.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2017 01:38 PM
Hi Jerimy,
I don't think that is the case, Business Rule is to run when records gets inserted, updated etc. as per the action defined irrespective if it's been done through form or through integration. Records has to be updated to trigger the Business Rule doesn't matter what way is used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2017 10:10 PM
Hi Shishir,
It seem your post happened at roughly the same time as Michael's.
I see where you are coming from in your thoughtful post - thank you.
You might have overlooked the possibility of REST updates via the import set api?
Import Set API - POST /now/import/{tableName}
If the REST endpoint includes "... /now/import/<table name> .." then an import set table will be updated.
There is a doc link here about the Run business rules option
..
2 Running Business Rules During a Transform
Becomes an issue: When importing a very large amount of data. For example, importing all data from an old system.
Symptoms: The transform takes much longer than expected. Also, the entire instance may be slow during that time.
How to avoid this: Do not run business rules during a transform unless you want all insert and update business rules, notifications, and workflows to run. For example, when importing all data from an old system, you may not want notifications to run. To disable business rules from running within the transform map for that import, deselect the Run business rules check box.
If the reply was informational, please like, mark as helpful or mark as correct!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2017 11:31 PM
Hi Anthony,
That is very informative, yes I didn't thought about that option which is there in Import Set.
Appreciate your explanation.