Flow designer for adding group members in Incident watch list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 03:21 AM
Hello all,
I have a check box field in INC form, once it is checked then all the members from a specific group should be added to the watch list, of that incident, this needs to be done through a FLow designer.
Please help me out, I have tried in PDI but I could get only a single group member added in the watch list and not all members.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 05:59 AM
First question: who told you that this has to be done through flow designer? I do agree that it should, but giving a requirement or asking a question stating how it should be done, is never a good thing. If anyone told you you should use the flow designer, the only answer is 'I will do this in the best possible way. If that is flow designer, I will use flow designer.'
Trigger on your flow is 'checking of the box'. Then you do a look up to the sys_user_grmember table with the table being your specific group.
The user field on the sys_user_grmember table contains the sys_id of the user, so you already have those. Because you want to add them all, create a string variable 'watchlist'.
Use a 'for each' on the found grmember records to add the sys_id of the user to the watchlist, separated with a comma. First define the current watchlist (from the trigger, because you don't want to override the content). Then just add the sys_id's.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 07:50 AM
Hi,
Yes it has been asked to use flow designer, we are trying to implement more use of flow designer in our company instance.
Please find the screenshots of the flow I used before and after testing it.
I have added 4 members in the group Security INC group but only 1 member was added in the INC watch list.
1.
2.
3.
4.
5.
6.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 06:25 AM
@Mohammed Daiyan Instead of flow designer, you can simply create an onBefore Update business rule which triggers when the security_incident field changes to true.
In the script, you can add the members of the group to watchlist.
If you still wish to accomplish this via a flow then share the screenshot of your flow so that corrections can be suggested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2024 07:53 AM
Please find the screenshots of the flow I used before and after testing it.
I have added 4 members in the group Security INC group but only 1 member was added in the INC watch list.
1.
2.
3.
4.
5.
6.