Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get list of flows which includes the approval step and uses VIP user code

Gaurav Vaze
Kilo Sage

Hello developers
I just met with a requirement where I have to provide a list of flow which includes the use of VIP user code.

Description: 

Basically in our sys_user table, there is a field called VIP user code, which contains string values such as N 1 2 3 4 5, etc.
This field is useful for distinguishing the approvals

So there are multiple flows where the VIP user code is checked and approvals are skipped.
I want to have all those flows and if I check manually then there are more than 250 flows so doing so will be a pain in the head


Question: 

Can we do this from the script in order to return the list of flows where the VIP user code field is used?
or is there any way to retrieve the list of these flows?


Any help will be appreciated 
Thank You!!

Gaurav Vaze
ServiceNow Developer

0 REPLIES 0