web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Two appended arrays ar...
Power Automate
Unanswered

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. 

Categories:
I have the same question (0)
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard