cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sundayDriver
Level: Powered On

How can I initialize an empty array?

Hi,

I'm trying to add an array variable which needs to have an initial value. How can I initialize it with an empty array?

Thank you,

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How can I initialize an empty array?

You just initialize the variable as an Array, with no Value set, like so (see Initialize variable 2): 

7.JPG

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Super User
Super User

Re: How can I initialize an empty array?

You just initialize the variable as an Array, with no Value set, like so (see Initialize variable 2): 

7.JPG

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Community Support Team
Community Support Team

Re: How can I initialize an empty array?

Hi @sundayDriver ,

 

Here is a blog on shed some light on array could be a reference for you:

https://veenstra.me.uk/2018/07/10/microsoft-flow-shed-some-light-on-arrays/

 

Another blog on defining what we need could be helpful as well:

http://johnliu.net/blog/2018/12/how-to-implement-sort-with-microsoft-flow-in-3-actions-within-a-loop

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,177)