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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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!

Users online (57,375)