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 print array output in flow designer > action

skumar_srbh
Tera Guru

I have created an Action, where I am trying to fetch the Incident's assignment group members email ID, 

skumar_srbh_0-1690349593725.png

incident number is the input and in script section i am fetching the value from sys_user_grmember table. in the end of script part, I have added a log to print- "output.user_emailID", and can see email ID values are populating. however when i see the execution of Action, its shows blank.

skumar_srbh_3-1690350664581.png

 

My question is, in the above screenshot, are all email IDs from group should show in front of User Ids field ?? as Further I am using this action into a for each loop in a flow, it's not working.

 

Thanks in advance for help,

Kumar

1 ACCEPTED SOLUTION

7 REPLIES 7

ShrutiW_0-1690358176786.png

Try this

looks like i had some variable issue, now it worked

Sandeep Rajput
Tera Patron
Tera Patron

@skumar_srbh Did you map the output of your script in the Action to the output of the action? If no then the output variable would appear as empty.

 

Screenshot 2023-07-26 at 1.44.23 PM.png

 

Screenshot 2023-07-26 at 1.45.29 PM.png