Flow designer - how to add approvals for catalogue task

West1
Tera Expert

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.

 

West1_0-1697776695453.png

 

 Does anyone know how to do the same in flow designer? Well, get the same outcome?

 

West1_1-1697776695464.png

 

 

7 REPLIES 7

Tai Vu
Kilo Patron
Kilo Patron

Hi @West1 

Let's try this way.

TaiVu_0-1697778053698.png

 

Let me know if it works for you.

 

Cheers,

Tai Vu

Hi Tai,

 

I get the following error

 

West1_1-1698125395018.png

 

Ankur Bawiskar
Tera Patron
Tera Patron

@West1 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar Thanks for your reply and sending that through.

 

I have never done an inline script. could you guide me through that?