Flow designer for adding group members in Incident watch list

Mohammed Daiyan
Tera Contributor

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.

MohammedDaiyan_0-1725963664648.png

 

10 REPLIES 10

Mark Manders
Mega Patron

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

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. 

MohammedDaiyan_0-1725979635211.png

2. 

MohammedDaiyan_1-1725979653610.png

3.

MohammedDaiyan_2-1725979672424.png

4. 

MohammedDaiyan_3-1725979692919.png

5.

MohammedDaiyan_4-1725979707048.png

 

6.

MohammedDaiyan_5-1725979804287.png

 



Sandeep Rajput
Tera Patron
Tera Patron

@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.

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. 

MohammedDaiyan_0-1725979956914.png

 

2. 

MohammedDaiyan_1-1725979956946.png

 

3.

MohammedDaiyan_2-1725979956996.png

 

4. 

MohammedDaiyan_3-1725979956964.png

 

5.

MohammedDaiyan_4-1725979956927.png

 

 

6.

MohammedDaiyan_5-1725979956982.png