How to set the IT watch list field values in the sub flow create catalog task action??

KM SN
Tera Expert

I need to get the Sys id's either in the format of string or array as input for sub flow and I need to set them in IT Watch list field while creating task itself?

 

how to achieve this? 

 

3 REPLIES 3

Mark Manders
Mega Patron

The watchlist is a comma separated list of sysIDs, so depending on which users you need in there, you need to query to those ursers, get the sysIDs and put them into the watchlist. It all depends on the other logic you have and didn't share, how this can be done in the most effective manner.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

maddalahemanth
Tera Contributor

Hii @KM SN ,

I didn't get your query. could you please explain it briefly. Because, from where you are passing the values to sub flow??

Shivalika
Mega Sage

Hello @KM SN 

 

If you are using flow designer - 

1)Create a flow variable. 

2)Look up Records to get the sys_id whatever you want. 

3)Keep appending that value in flow variable with a comma. 

 

You should get this and then you can put it in watchlist. 

 

If you are using any other server side script then creating a string type variable - answer = " 

And keep appending sys_id with comma should do the work. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY