Add users to watchlist via Flow Designer rather than replace existing ones?

Jonathan Demeul
Tera Expert
Good day, there is probably a simple solution to this, but in Flow Designer I have created a flow that updates the Watch List on the incident form. What I want to achieve is to add a user to the list of already existing users in the watch list, however when I use my flow it simply clears out any user that was in there and replaces is with just the one user_id I provided. How can I fix this that it adds the user rather than replace all the others?
 
find_real_file.png

This replaces all users in the watchlist with a single user. I guess that's what I'm asking the flow to do, but I want to be able to add upon the already exisitng users in the list basically.

Kind regards
1 ACCEPTED SOLUTION

Jonathan Demeul
Tera Expert

I feel stupid but I managed to solve this by looking up the record and replacing the watchlist with the datapill of the current watchlist + the datapill of the User ID:

find_real_file.png

That solved it.

View solution in original post

11 REPLIES 11

Hi Maik

I didn't really need to use any scripting whatsoever, I could simple combine the two datapills to update the watchlist.

I was confused by the setup variable step as I didn't understand how/why to use that step as it does not produce an output that's usable to fill the watch list?

Hi

why cannot you see my answer? Maybe you haven't expanded all replies?

Here a screenshot:

find_real_file.png

Kind regards
Maik

Even I didn't saw at beginning Maik, Later I'm able to.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hey Maik,


Sorry I must have missed it? I had my browser tab open and posted my solution.

Thanks for the help, I appreciate it.

can you explain your solution for this problem step by step?