Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

@AlexanderH23091 

Step 3 is lookup on Group?

share screenshots.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

AlexanderH23091_0-1759223789503.png

there are also screenshots on the top

Is there any way to debug the script to see what happens?
It doesn't work for some reasons. Thank you

 

 

Hi GP,

 

i found out that the script works if i debug it in the flow designer with RITMs.

But if i run it via the catalog item in /esc it doesn't work. So the problem is somewhere else

Hi @AlexanderH23091 ,

 

Can you run the flow as "System user"

To update a Flow Designer flow to run as the System User in ServiceNow, you must change the Run As property in the flow's settings. This is required when a flow needs elevated permissions to execute actions that the user who initiated the flow does not have

 

In addition to that, The flow for a catalog item is often triggered by an approval on the parent Request record (sc_request). If the parent request is not automatically approved or no approval logic is in place, the flow might not trigger correctly.

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP