On change of Type field of user Group, need to create ticket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 03:24 AM
Hi @Ankur Bawiskar , @Sujatha V M , @BradBrad
If Computer table Support group's type changes and it contains some type ''Access' and group type is not changed to same 'Access' role. Then I have to show alert on computer table.
I used BR I just added supportgroup.type changes, but that BR is not triggered after I changed group's type to some other type. Here type filed is List type.
Please suggest on it.
Thanks,
Anusha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 10:03 AM - edited 09-11-2024 10:04 AM
Hi @Anusha Anus Create Before Update BR and below code. Add a BR run condition as Support Group.Type Changes and modify accordingly
(function executeRule(current, previous /*null when async*/) {
if (current.support_group.changes()) {
// Retrieve the new and previous values of the Support Group type
var newGroupType = current.support_group.getDisplayValue();
var oldGroupType = previous.support_group.getDisplayValue();
if (newGroupType == 'Access') {
if (oldGroupType != 'Access') {
gs.addErrorMessage("The Support Group type has changed to 'Access', but was not previously 'Access'.");
}
}
}
})(current, previous);