Finding Dynamic Group Where Used List.

While trying to delete Dynamic Group you might have observed an error “This group cannot be deleted when it is in use.” Have you wondered is there a way to find where exactly it is in use? Of course if you have maintained proper documentations during the implementations then you can always refer to that and figure out where exactly this Dynamic Group is used. However if you are looking for a method to find it directly from system, then please continue reading.

Finding Dynamic Group Id

Use browser tool to find the Dynamic group Id. Before you click on the delete icon, open browser tool and filter for “.dwr”.  Check the payload of service call deleteGroupData.dwr and get the dynamic group id as below.

Dynamic%20Group%20Id

Dynamic Group Id

Use Data Inspector to find the list

Ensure that you have the relevant permission by checking the Manage System Properties > Data Inspector.

Data%20Inspector%20Permission

Data Inspector Permission

Now, navigate to Admin Center > Data Inspector.

Finding DG(Dynamic Group) use in DR (Dynamic Role)

Select Entity as “Table_FO_DYNAMIC_ROLE_ASSIGNMENT” and define filters as Dynamic Group ID = 1651 (Value found from browser tool). Note down the Dynamic Role Id from the results.

Dynamic%20Role%20Id%20from%20Dynamic%20Group%20Id

Dynamic Role Id from Dynamic Group Id

Now, Select Entity as “TTable_FO_DYNAMIC_ROLE” and define filters as Internal Code = 3 / 1 (Dynamic Role Id found from previous step). This will give the Dynamic Role details in which Dynamic Group is referenced.

Dynamic%20Role

Dynamic Role from DR Id

Dynamic%20Role

Dynamic Role

Once you remove the DG reference in DR, you will be able to delete it.

Finding DG use in Workflow FO

In similar way you can find the Workflow FO configurations in which DG is referenced, however this reference will not prevent you from deleting DG.

Find Workflow Step Id from DG Id as below.

Workflow%20Step%20Id

Workflow Step Id

Find Workflow Config Id from Step Id as below.

Workflow%20Config%20Id

Workflow Config Id

Find Workflow FO Code from config Id

Workflow%20FO%20Code

Workflow FO Code

Workflow FO in which DG is referenced

Workflow%20FO

Workflow FO

That’s it. If you have any questions or feedback, leave me a comment.

Best Regards,

VR