We are currently experiencing intermittent login issues on Community.  The team is actively working on a fix.

Flow that automates adding/removing group type to a user group after Request from Catalog Item

AlexanderH23091
Tera Contributor

Hi all,

 

i need some help.  We have a catalog item for users to request if they want to add or remove group types like itil etc. The user puts the information in variables and after that i call them in the flow.

And how can i change the group type? If i select the table user group there is only a field Type. And in this field i cannot enter either the variable or the sysid of the variable.

 

Has someone a solution? Or an idea how i can automate it. It must be via Catalog Item the request.

 

Thanks

Alex

16 REPLIES 16

Ok i found the problem. 

It was a really stupid mistake on my part. I didn't see that the flow wasn't activated 🙈

 

So it works now

kaushal_snow
Giga Sage

Hi @AlexanderH23091 ,

 

You can absolutely automate adding or removing a group type on a user group from a catalog request by having a Flow that looks up the target sys_user_group, then using a script step (or custom action) inside that flow to read the existing type list (which is a comma separated list of sys_ids), add or remove the desired type sys_id, dedupe the list (e.g. with ArrayUtil.unique()), and update the type field, that way the flow dynamically handles both add/remove actions based on the variable inputs....

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/