Flow designer - how to add approvals for catalogue task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 09:38 PM
Hi All,
In workflows I was able to get approvals comments added to the catalog task, by adding the following line task.comments= new AddApproverComments().addComments(current.getValue('sys_id')); in the catalog script.
Does anyone know how to do the same in flow designer? Well, get the same outcome?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 10:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 10:30 PM
Hi Tai,
I get the following error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 10:11 PM
you can use inline script and handle the same for the comments field using f(x)
var sysId = fd_data.trigger.current.sys_id;
return new AddApproverComments().addComments(sysId);
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
10-19-2023 10:27 PM
@Ankur Bawiskar Thanks for your reply and sending that through.
I have never done an inline script. could you guide me through that?