I have requirement for Deactivate the group

Brahmi Pandla
Tera Guru

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).

 

BrahmiPandla_0-1734943449599.png

 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

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Brahmi Pandla 

this sounds to be a complete requirement.

what did you start with and where are you stuck?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

 

@Brahmi Pandla 

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?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

vishwajeet5550
Mega Guru

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.