Add Multiple Users to WatchList of a Story through Flow Designer

peri sravani1
Tera Expert

Hi All,

I've requirement where I need to create a story record when catalog item is ordered. I did this part but now I need to add Requested for and Requested by of a catalog item to Watch List of a Story through Flow Designer. Please advice how to do that?

 

Thank You.

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron

@peri sravani1 

you can use inline script while setting the watch list field.

something like this. please enhance it as per your requirement

return fd_data.trigger.request_item.requested_for + ',' + fd_data.trigger.request_item.requested_by;

If my response helped please mark it correct and close the thread so that it benefits future readers.

View solution in original post

Using the below code worked. Thank You for answering my question @Ankur Bawiskar 

It does help me a lot.

Code: 

return fd_data._1__get_catalog_variables.request_for.name+','+fd_data._1__get_catalog_variables.requested_by.name;

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@peri sravani1 

you can use inline script while setting the watch list field.

something like this. please enhance it as per your requirement

return fd_data.trigger.request_item.requested_for + ',' + fd_data.trigger.request_item.requested_by;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Hi @Ankur Bawiskar ,

I've been using the below code as you said but it is throwing error.

return fd_data._1__get_catalog_variables.request_for+','+fd_data._1__get_catalog_variables.requested_by;
perisravani1_0-1700547096311.png

 

Thank You.

Using the below code worked. Thank You for answering my question @Ankur Bawiskar 

It does help me a lot.

Code: 

return fd_data._1__get_catalog_variables.request_for.name+','+fd_data._1__get_catalog_variables.requested_by.name;