cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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!

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (5,334)