- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 03:38 AM
Hi Folks,
I have written below BR to remove the group from group notification if its getting deactivated which is working perfect but how can i remove the same group from "workflow approval group activity" if this group is used for group approval. This BR is running on sys_user_group table with condition active changes to false.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 04:02 AM
Workflow activity variables are stored on the sys_variable_value. The 'value' will be the sys_id of the group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 12:03 AM
its works with below code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 03:59 AM
Hi @Vijay Baokar ,
Please make some changes like be sure your BR is Before type and update your script with below script
var Grp = current.getValue("sys_id"); // Sys_id of deactivated group.
var GRgrp = new GlideRecord('sysevent_email_action');
GRgrp.addQuery('recipient_groups', Grp);
GRgrp.query();
while (GRgrp.next()) {
GRgrp.recipient_groups = '';
}
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-16-2024 04:12 AM
@Community Alums My script is all working , i just need similar logic to remove that group from any workflow approval group activity if used.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 04:02 AM
Workflow activity variables are stored on the sys_variable_value. The 'value' will be the sys_id of the group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2024 04:41 AM - edited 05-16-2024 04:47 AM
@Kieran Anson but with BR i am not able to remove specific sys_id from value field of group which is getting deactivated.