How to build Add members to a group using Catalog item and flow designer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 07:04 AM
Hi Team,
There is a catalog items with field as below:
Group - Reference - Group table
Users - List Collector - User table
After submitting the catalog item,
1- If any selected user is a selected group manager, User automatically add into selected group.
2- If not, Approval send to Selected group Manager. After Manager approves, those users automatically add into that selected group.
Please provide the Flow designer steps and if any related scripts, it would be very helpful to me.
Thank you for your help in advance.
Thanks & Regards,
Prasanna Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 07:15 AM
@prasannakumard - Can you be more specific to the your 1st point, Select user should be Group manager of the group selected or any other group manager. or did you meant if the request is submitted by group manger?
Abhit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 11:28 PM
Hi @Abhit
If I select Group as ABC Group (Manager = XYZ), If I select User field as XYZ, ABC, DEF
XYZ automatically add into ABC Group, for ABC, DEF, we should send approval mail to XYZ.
Thanks & Regards,
Prasanna Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 07:16 AM
Hi @prasannakumard ,
Create a action in flow desinger which can add user to group.
- Create a new Flow Designer flow with a Service Catalog Request trigger.
- Add a form element to the flow to gather the user name and group that the user wants to be part of.
- Add an approval element to the flow, configured to send an approval request to the group manager of the selected group.
- Add a decision element after the approval element, with a condition to check if the approval was approved.
- If the approval was approved, add a script element to the flow to add the user to the group and send a notification to the user.
- If the approval was not approved, add a script element to send a notification to the user indicating that their request was denied.
You can use the addMember() function of the Group class to add the user to the group, and the sendEmail() function of the MailAPI class to send notifications to the user and the group manager.
https://www.youtube.com/watch?v=dlHRauVPPYQ
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 11:34 PM
@Sohail Khilji Yes, you are right. I've also same idea, but, I'm having very less knowledge on Flow designer. If possible, can you plz provide the Flow designer steps and their scripts. I've created flow designer as mentioned below:
Can u plz let me know if any changes here.