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.

Flow designer scripted approvals not working

Priya75
Tera Contributor

Hi All,

 

I am creating a flow for a table(x_nose_ap_infringemnet) , so i have kept the trigger point :-when the approval field is changed to Approval after this i am sending the record sys_id to action which is taking input as sys_id and it is calling a script include from there and sending back the approval group sys_id..it could be multiple or single. 

 

Action (called after trigger)

var record=inputs.a2precord; //sys_id from flow 

var group = [];

var getApp = new Infg_AprrovalMatrix();

group = getApp.getApprovals(record);

output.approvalList="ApprovesRejectsAnyG["+group+"]" //also getting the sys_id from the script include

 

 

the Approval is generated but the approval doesn't wait for approval or rejection . the Ask for approval output shows :- state as skipped. how can i make it wait for it? WhatsApp Image 2025-12-02 at 19.30.41.jpeg

 

 

 

 

0 REPLIES 0