Business Rule to update Parent Demand field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2022 11:08 AM
Hello!
I was hoping someone could assist me with what I'm doing wrong.
I created a Business Rule on the Demand task table. The goal of my business rule is to update the "T-Shirt size" field on the Demand task's Parent Demand when the Demand task is closed.
Below are screenshots of the Business Rule:
To test the business rule:
1. I changed the State of a DMNTSK to "Closed Complete" and saved the record.
2. I then went to the Parent DMND of the DMNTSK and see that the "T-Shirt size" field still has not changed to "L- Large".
Any help is appreciated.
Thank you!
Michelle
- Labels:
-
Demand Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2022 11:14 AM
Hi,
Did you checked if any other rule is running which is not allowing it to get set via this BR?
Check history of Parent DMND to check if at all changed T Shirt size
Thank you
Prasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2022 11:20 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2022 02:05 PM
You need to write afte Update BR on Demand task table. Condition to be added : State is Closed
Then go the Advanced tab to write below script
(function executeRule(current, previous /*null when async*/) {
var rec = new GlideRecord('name_of_the_parent_table');
rec.t_shirt_size_on_parent_table = current.t_shirt_size;
})(current, previous);