Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to insert Sharepoints items to Array?

(0) ShareShare
ReportReport
Posted on by 38

I have a column of Sharepoint items where I want to insert it into Array in Flow for comparison purposes. How can I put a chosen column to an array?

  • v-litu-msft Profile Picture
    on at
    Re: How to insert Sharepoints items to Array?

    Hi @ywliang96,

     

    Has your problem been solved?
    If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Best Regards,
    Community Support Team _ Lin Tu

  • v-litu-msft Profile Picture
    on at
    Re: How to insert Sharepoints items to Array?

    Hi @ywliang96,

     

    The screenshot shows that the output of the Append to array variable action. Actually, you could create a compose action, then put the variable into it to check it.Annotation 2020-03-02 110757.png

     Also, you could use the Select action to approach it:

    Annotation 2020-03-02 110758.png

     

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

  • efialttes Profile Picture
    14,756 on at
    Re: How to insert Sharepoints items to Array?
    Hi
    Seems you are inspecting the variable value in the first iteration.
    My suggestion is: append a Compose action block outside Apply to Each, at the bottom of your flow, add your variable as its Input. Reexecute the flow and inspect the content of the Compose
    Hope this helps
  • sudharsan1985 Profile Picture
    1,325 on at
    Re: How to insert Sharepoints items to Array?

    Hi @ywliang96 

    can you please send the 'Apply to each' of the flow already ran like the below. You can see the 'Next' link which will navigate through each output from the 'Get Items' action.

    Flow Res 6.png

     

    Hope it helps, please like or mark it as a solution if it resolves your issue

    -Sudharsan K...

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: How to insert Sharepoints items to Array?

    Hi @ywliang96 

    Can you please post the 'Apply to each' action for the successfully ran flow like the below. There is a 'Next' link which will navigate to each items. Try to use the array collection after the 'Apply to each'.

    Flow Res 6.png

     

    Hope it helps, please mark it as answered if it resolves your issue.

    -Sudharsan K...

  • ywliang96 Profile Picture
    38 on at
    Re: How to insert Sharepoints items to Array?

    Capture.PNG

    Here is my record in the column in Sharepoint List that I'm looking to extract to arrays. I have about 21 records

     

    1.PNG

    Here is the Flow that I created which follows exactly as what is shown on top.

     

     

     

    3.PNG

    Here is the output from Get Item. Noticed that I search my To/From column and it actually brings 21 record. 

     

     

    2.PNG

    Here is the Append Array Output which only brings 1 record instead of the 21 records. What am I missing?

     

     

     

  • abm abm Profile Picture
    32,506 Most Valuable Professional on at
    Re: How to insert Sharepoints items to Array?

    Hi @ywliang96 

     

    Make sure you are using Get Items SharePoint action step. Also check you have more than one records in SharePoint. Are you using any specific filters in Get Items. If so make sure your filter is correct and expect more than one records for the specified filter.

     

    Check your flow run history and expand the Get Items Step output. Here you can see how many records you are getting.

     

    Thanks

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: How to insert Sharepoints items to Array?

    Hi @ywliang96 

    Please look at the screenshot below. For verification, I had assigned another variable and concatenated the final array to a comma-separated string. Try to click the 'Next' button in the 'Apply to each' branch.

    Flow Res 5.png

    If you still have some clarifications, please share your flow so that it will be clear for us to understand.

     

    Please mark it as answered if it resolves your issue.

    -Sudharsan K...

  • ywliang96 Profile Picture
    38 on at
    Re: How to insert Sharepoints items to Array?

    I only able to get 1 record stored in the Array.

     

    For example, the column "Title" has

    Title1

    Title2

    ..

    Title100

     

    But using your way, I only able to get 1 record.

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: How to insert Sharepoints items to Array?

    Hi,

    If i understood you correctly, you are trying to add a particular column value from all the items to an array for future comparison purposes. I got all the items and particularly I am adding all the 'Title' field values to an array called 'ItemCollection' which is initialized before getting the items.

    Flow Res 3.png

    Please mark it as a solution or answered if it resolves your issue.

    Regards

    Sudharsan K...

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