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

Community site session details

Session Id : c5S4UEosIC7+dCzvYbpyTD
Power Automate - Building Flows
Unanswered

How to insert Sharepoints items to Array?

Like (0) ShareShare
ReportReport
Posted on 29 Feb 2020 11:59:02 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?

I have the same question (0)
  • v-litu-msft Profile Picture
    on 06 Mar 2020 at 09:14:02
    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 02 Mar 2020 at 06:38:52
    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 02 Mar 2020 at 06:26:34
    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 02 Mar 2020 at 03:50:46
    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 02 Mar 2020 at 01:59:56
    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 02 Mar 2020 at 01:38:04
    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 01 Mar 2020 at 21:45:31
    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 01 Mar 2020 at 10:36:00
    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 01 Mar 2020 at 08:08:16
    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 01 Mar 2020 at 03:51:17
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2