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
Community Support

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
Community Support

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
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 (3,743)