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 row count for multirow variable set in Flow Designer?

gjz
Mega Sage

I have a catalog item for decommissioning servers and use a multirow variable set to hold the list of servers to decommission.

 

I'm converting my workflow to Flow, and in my Flow, I'm using a "For Each" to get the data from the MRVS and for each row in the MRVS, I'm doing a Look Up Record to the server CI to get the "friendly" name of the server, which is then put into a string variable to use at a later time.

 

In the workflow, I checked the count of the MRVS to determine whether or not to add a comma at the end of the string, but I can't figure out how to do that with Flow.

 

How can I get the number of rows in the MRVS in the For Each flow logic?  Or another way to do the same thing?

 

Here's the code from the workflow:

gjz_0-1698421979035.png

 

 

 

0 REPLIES 0