- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2018 12:32 AM
Hi,
As per my understating when we checked the "Run business rules" on transform map form then all business rule will get run on target table, but I want to run a particular BR only, So how achieve that.
Thanks in advanced.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2018 02:11 AM
Hi DS,
That's correct. so if some script include is trying to insert record into that table those 9 BRs won't run. So this will affect the performance.
As a workaround what you can do is:
1) uncheck run business rule
2) you know which business rules to run; copy and use that complete code in an onAfter script so that it would run on every row of import set.
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
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-31-2018 12:44 AM
Hi DS,
I think it comes from platform level and hence you can't tell the system which BR to run and which not to run.
use your business rule conditions properly so that they trigger only through transform maps
Consider 2 BRs are present
BR1 - you want to run
BR2 - you don't want to run
so BR2 add condition gs.isInteractive()
when transform map runs it is not interactive and hence that condition would be false and BR2 won't run.
So thumb rule is add that gs.isInteractive() condition to whichever business rule you don't want to run from transform map
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
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-31-2018 01:54 AM
Hi Ankur,
Thanks for your reply, but if suppose there are 10 business rule running on that table and if I add gs.isInteractive() condition in all the 9 BR which i don't want to run then it wont run the 9 business rule during data moving part as per your suggestion but It might affects the all process which are depends on these 9 BR if Data moving part would take time to complete.
Please correct me if I am assuming anything wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-31-2018 02:11 AM
Hi DS,
That's correct. so if some script include is trying to insert record into that table those 9 BRs won't run. So this will affect the performance.
As a workaround what you can do is:
1) uncheck run business rule
2) you know which business rules to run; copy and use that complete code in an onAfter script so that it would run on every row of import set.
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2020 09:01 PM
In case if we want to run only audit business rule from transform map, then how we can do this because I believe audit related script are not visible to us.