Flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 06:24 AM
hey Everyone i need a help..! I have to make a flow for catalog item that is containing variables select user(reference),select group(reference),add or remove having choices of add user and remove user, email(single line text) , location(reference) now I have to do that if I fill the field of select user with any user and I fill the field of select group and the user i selected if he is in that group which i selected so if i select the choice of remove user the user should be removed from the selected group now tell me how to do with flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2024 10:03 PM
If I am understanding correctly, You are wanting to remove the selected user from the selected group.
Here is an example of what can be done - Note: no approval is sort in this example.
Trigger will be Service Catalog
Set the stage as Fulfilment
First step will be get catalog variables
2nd step will be a look up record - Table will be sys_user_grmember, Where user is the variable for selected user(use the pill selector) and group will be the select group(use the pill selector)
3rd step will be an If statement - If the status of step 2 is error
4th step will be inside the if, Update Record Use the pill selector to pick the requested item Additional comments with "The user is not a member of the group"
Set the stage as completed
5th step will be an else
6th step - Delete record action where the record is the result of step 2(use the pill selector)
7th step - Update Record Use the pill selector to pick the requested item Additional comments with "User: ("use pill for the User>Name) has been removed from group: ("use pill for the group>Name)
Update the stage to completed.