cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
michaelshparber
Helper III
Helper III

Append two string variables to an array

I am calling to a child flow inside Apply to each loop.

Each child flow returns two string outputs: vFileName, vRowsCount.

I need to append all these results to an array.

It's something basic, I just cannot find specific case in Google...

Please help

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User II
Super User II

Hi @michaelshparber,

 

You should be able to use an append array action for this. In my example I used variables.

 

appendtoarray.png

 

The result will be something like this:

arrayendresult.png

 

Btw, Pieter Veenstra has a nice blog about working with Arrays, which I find pretty useful: https://sharepains.com/2018/07/10/power-automate-shed-some-light-on-arrays/

View solution in original post

3 REPLIES 3
Expiscornovus
Super User II
Super User II

Hi @michaelshparber,

 

You should be able to use an append array action for this. In my example I used variables.

 

appendtoarray.png

 

The result will be something like this:

arrayendresult.png

 

Btw, Pieter Veenstra has a nice blog about working with Arrays, which I find pretty useful: https://sharepains.com/2018/07/10/power-automate-shed-some-light-on-arrays/

View solution in original post

So I need to use "Apply to each...."

I thought of doing it without this loop.

Thanks!

Paulie78
Super User III
Super User III

@michaelshparber that depends if your child flows run only once or within a loop themselves. If they are not in a loop then you don't need to use a loop to do what you want (if they are executed only once per flow). @Expiscornovus had his append action inside a loop because he was looping through SharePoint items.

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (49,955)