How to add users in a list collector as approvers in a flow

Tamilvanan T
Tera Contributor

Hi,

I have a list field in a table which stores the list of Users (references user table). I'm looking for a way to add the user  in this list field as approvals for an RITM in the flow designer. I've looked at some community pages where the suggested solution was to look up records and ask for approval in a loop and some articles are archieved. This did not work for me as the ask for approval action is accepting only reference fields and look up record is returning record type. Any help here is greatly appreciated.

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Tamilvanan T 

 

https://www.servicenow.com/community/itsm-forum/from-list-collector-variable-having-list-of-users-an...

 

https://www.servicenow.com/community/service-management-forum/add-users-from-list-collector-field-to...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Tamilvanan T 

you can use scripted approvals, combine all the users from list collector and then set

Scripted Approvals in Flow Designer with Flow Variables 

or you can use Lookup Records on sys_user with condition as

SysId IS ONE OF Get Catalog Variable->List Collector

Then use Flow variable to append the user sysId and then use Ask for approval action and use this flow variable to set the approval users

Note: Don't use ask for approval multiple times i.e. don't loop through it, use Ask for Approval only once and set the approvers

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

@Tamilvanan T 

Hope you are doing good.

Did my reply answer your question?

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

@Tamilvanan T 

Hope you are doing good.

Did my reply answer your question?

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