- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 12:45 PM
Hi! I'm seeking help with the below business rule. I need the business rule to run after the record is updated. I'm trying to automate the closing of demand tasks that have breached SLA. Any help is greatly appreciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 09:23 AM - edited 05-02-2024 09:25 AM
@AakashG0904 & @Community Alums Thank you for your help and my apologies for not being more specific. I change the BR to run before, created a new system property named "glide.record.update_ref_changes" and set it to true, and made the "Update reference fields" checkbox available in the BR form and checked it. The new system property and "Update reference fields" checkbox allow updates to related tables which was causing the issue (fields selected in "set field values" field in the Actions tab were not updating). Thanks again!
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0694481
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 11:54 PM - edited 04-12-2024 06:23 AM
Hi @Runel,
Hope you are doing well.
Please be ensure that the conditions set by you in your Business Rule are correct. You must have the records with both the conditions that you have applied.
Thanks
Aakash Garg
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 12:10 AM - edited 04-12-2024 12:16 AM
Hi @Runel ,
I tried your problem in my PDI and I hope below answer helps you
I created before BR and I added one condition like "Has Breached = true" and also added below code
(function executeRule(current, previous /*null when async*/) {
// Add your code here
current.setValue('stage', cancelled);
})(current, previous);
Result before
Result After
Here's the reference of BR
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 09:23 AM - edited 05-02-2024 09:25 AM
@AakashG0904 & @Community Alums Thank you for your help and my apologies for not being more specific. I change the BR to run before, created a new system property named "glide.record.update_ref_changes" and set it to true, and made the "Update reference fields" checkbox available in the BR form and checked it. The new system property and "Update reference fields" checkbox allow updates to related tables which was causing the issue (fields selected in "set field values" field in the Actions tab were not updating). Thanks again!
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0694481