Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2022 12:06 PM
Hi
I need to create a Business Rule where the State field is equal to "10", the same State field will change to "Open"
my Script:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
if(current.state == '10'){
current.setValue('state', Open); // use valid choice value
}
if(current.state == '9'){
current.setValue('state', Close); // use valid choice value
}
})(current, previous);
Tks!
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 11:03 AM
Hi Julio,
Is this issue fixed or your looking help
How these are calling by label or value ??
Thanks
Chandu Telu
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 11:03 AM
Hi Julio,
Is this issue fixed or your looking help
How these are calling by label or value ??
Thanks
Chandu Telu
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2022 03:56 AM
Hi,
I used a BR to change the field.
Thanks.