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 write loops in patterns?

PN5
Mega Contributor

I have list of entries in pattern table variable. The requirement is to loop through each table entry and run a command i.e. 'Parse Command output' and then store the result. How do I put a loop around a pattern step ?

5 REPLIES 5

Nimmi Kunwar
Kilo Explorer

Hi,

 

Hope this has been resolved. I need help with the same scenario. Only difference is i am trying to execute DB2 command i.e. "/DB2 CONNECT to <<Database Name(array)>> && /DB2 'select xyz from sytabc.xyzmata'"; whose output is also an Array.

 

Regards,

Nimmi