cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Store Value into Middle of Array

Hello,

 

I need some assistance with arrays in Microsoft Flow. I need to be able to store a value into the middle of an array that has already been initialized (cannot use append to array). I understand how to access an element of an array, so this is not my question. I instead do not know how to store a new value into an element without adding the new element to the end!

 

This is quite simple in normal programming, but I have no idea how I would do this in Flow. Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Store Value into Middle of Array

Hi @Anonymous ,

 

Do you want to add other elements in the middle of an array?

 

I am afraid that we are not able to store a new value into an array without adding the new element to the end.

 

I have made the following test using function union, please check it for a reference.

 

Function in Compose:

createArray('test1','test2','test3')

 

Function in Compose2:

union(outputs('Compose'),createArray('test4'))

1.PNG2.PNG

 

 

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.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Store Value into Middle of Array

Hi @Anonymous ,

 

Do you want to add other elements in the middle of an array?

 

I am afraid that we are not able to store a new value into an array without adding the new element to the end.

 

I have made the following test using function union, please check it for a reference.

 

Function in Compose:

createArray('test1','test2','test3')

 

Function in Compose2:

union(outputs('Compose'),createArray('test4'))

1.PNG2.PNG

 

 

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.

View solution in original post

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,520)