I have requirement for Deactivate the group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 12:49 AM
I had catalog from for creation and modify the group and workflow also available, now i want to create the workflow for
deactivate the group
i had variable New/Existing when i select the option Deactivate group, the approval should goes to the Deactivation approval required by group manager, there should be a warning message or reminder in the approval page when they press approve – “have you transferred all active tickets, tasks, and applications?” Yes approved. No do not proceed (but DO NOT reject).
how can i achieve this with workflow
and If manger approved
I want remove the group filed values
1 Remove parent group
2. Remove all assigned roles
3. Remove all group types
4. Remove all members
5. Remove default assignee
6. Active = false
Could you please help me with this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 12:50 AM
this sounds to be a complete requirement.
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 01:02 AM
Hi Ankur,
Thanks for the response, I taken Switch for
Option 1 New Group
Option 2 Modify Group
Option 3 Deactivate Group
When I select the Deactivate the group, it should goes to group manger approval,
am taking approval user activity
then what steps i need to follow next
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 01:45 AM
you can use IF activity and check what's the option in that variable and based on that have 2 outputs 1 for group manager and other for user approval
where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2024 03:27 AM
To create a workflow for deactivating a group with the specified functionality
--If Manager Approves: Once the group manager approves the deactivation, the workflow will proceed to deactivate the group. You will need to create a set of actions in the workflow to:
-Remove Parent Group: Use a script or action to unlink the parent group from the deactivated group
-Remove All Assigned Roles: Execute a script or action to clear any roles that were assigned to the group.
-Remove All Group Types: Remove any group types that the group might be associated with.
-Remove All Members : This action should clear all members assigned to the group.
-Remove Default Assignee: Remove any default assignee that might be associated with the group.
-Set Active to False: Finally, set the “Active” field of the group to false, marking the group as deactivated
--Workflow Execution: This workflow should be executed automatically when the deactivation option is selected, and the group manager’s approval triggers the series of actions to deactivate the group and remove all associated elements
--By structuring the workflow in this way, you ensure that the deactivation process is controlled, with appropriate checks for transferring tasks and data. You also ensure that the group’s information is thoroughly cleaned up once it is deactivated, leaving no residual assignments or responsibilities.