Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Append to array variable limitation

Seems like there are maximum items limitation that when using append to array variable, it can only have 500 items in total.  But my result may have 100 thousand+ items which comes from a do until loop (each loop only return 1 thousand items), thus I need set an array variable and append to the variable in each loop. The finial goal is to create a csv table to include all the items and then create a csv file in SharePoint list.

I think this is a very common case, do we have any solution or workaround?

Super User II
Super User II

Hi @Sear 


I have a proposal for a workaround. 


When adding to your array, check if you're reaching the max. If you're doing so, append to the CSV, all the values created as far, and reset the array. Repeat until the number of items is finished. 


There's no need to hold everything in an array before you can generate the CSV. You can keep on appending stuff.


Can you please check if and let me know if you have any questions?


If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Super User III
Super User III

Hi @manuelstgomes 


Thanks for your quick reply, to append to the CSV, I think I need have a string variable which also has the maximum size of 100MB limitation when using a append to string function, but at least it can hold more items than append to array variable.


by the way, I need one csv file which contains all the results instead of split files.

Hi @CFernandes 


I read that post before I post my question, that workaround can't resolve my issue, as I'm using a custom connector and can't enable the built-in pagination, the maximum top count of my customer connector is 1000 and the total count may have 100 thousand.

Helpful resources

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

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 (108,559)