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.
Use Data Inspector to find the list
Ensure that you have the relevant permission by checking the Manage System Properties > Data Inspector.
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.
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.
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.
Find Workflow Config Id from Step Id as below.
Find Workflow FO Code from config Id
Workflow FO in which DG is referenced
That’s it. If you have any questions or feedback, leave me a comment.