- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 08:45 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 09:24 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 10:16 PM
Using the below code worked. Thank You for answering my question @Ankur Bawiskar
It does help me a lot.
Code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 09:24 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 10:11 PM
Hi @Ankur Bawiskar ,
I've been using the below code as you said but it is throwing error.
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 10:16 PM
Using the below code worked. Thank You for answering my question @Ankur Bawiskar
It does help me a lot.
Code: