Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Two appended arrays aren't creating the same, pics below.

(0) ShareShare
ReportReport
Posted on by

So currently I have two arrays I am appending too:

 

FIRST ARRAY CREATION:

First Array Creation.PNG

 

SECOND ARRAY CREATION:

Second Array Creation.PNG

 

Creating step to check what is in the arrays: 

View arrays.PNG

 

TWO OUPUTS: 

Output first array.PNGOutput second array.PNG

 

I haven't worked with arrays in power automation, so some confusion. If you noticed in the second array creation, I was required to put "_" and the end. Not sure why -- but If I didn't I would get an invalid format error. Could that be the problem? Essentially I want these two arrays to look the same. 

 

Let me know if you need more info or have questions. Thank you. 

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at
    Re: Two appended arrays aren't creating the same, pics below.

    Hi @Anonymous 

     

    I am not 100% sure about your differences but I can tell you that there is an easier way to create an array.  I do note that your values should be in double quotes though "", which might be part of the problem.

     

    Assuming your first array is using list files as the source, you can use select action.

     

    DamoBird365_0-1626974056600.png

     

    Your 2nd array is a bit more complicated as I cannot see the source and you have a counter.  A counter can be achieved by using the range expression and I have based the example below on the value array from get files once more, but you can update to your actual source.  If you want to include the 

     

    FROM: range(0,length(outputs('List_files_in_folder')?['body/value']))

    MAP: outputs('List_files_in_folder')?['body/value']?[item()]?['NameNoExt']

    KEY: File_Name_add(item(),1)

     

    Above I have dynamically included the number in the key name:

    DamoBird365_1-1626974392228.png

    Output is as follows (but you would have the dynamic add(item(),1) in your value parameter

     

    DamoBird365_2-1626974483625.png

     

    I've a couple videos on my YT about array manipulation - worth a watch if you are new to it all.  Any q's just ask.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1