cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

'Get Items' does not return all columns in Sharepoint List

Has anyone faced this before? What am I missing?

Scenario1:

  • Trigger: Button push
  • Action1: Get Items from Sharepoint List
  • Action2: Create .csv (automatic headers)
  • Action 3: Send email (with .csv as attachment)
  • Works fine EXCEPT there are columns missing from the Sharepoint list (6 columns!)

Scenario2:

  • Trigger: Button push
  • Action1: Send HTTP Request to Sharepoint list
    • GET with _api/web/lists/GetByTitle('LISTNAMEHERE')/items as the "Uri"
       
  • Action2: Parse JSON (parse the response from above)
  • Action3: Compose (grab the nested array from JSON using outputs(['ParseJson']?['body']?['d']?['results']
  • Action4: Create CSV (from Body of Compose action)
  • Action5: Send email (with .csv as attachment)
  • Works fine and returns ALL COLUMNS in the Sharepoint list

Why partial results with Get Items?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: 'Get Items' does not return all columns in Sharepoint List

The Get Items action normally brings back a limited set of columns to improve performance.  Make sure you open up the advanced properties and set the Limit Columns by View to Use all columns (do not limit) to get all the columns.

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

6 REPLIES 6
Dual Super User
Dual Super User

Re: 'Get Items' does not return all columns in Sharepoint List

The Get Items action normally brings back a limited set of columns to improve performance.  Make sure you open up the advanced properties and set the Limit Columns by View to Use all columns (do not limit) to get all the columns.

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Super User
Super User

Re: 'Get Items' does not return all columns in Sharepoint List

Does not work on lists larger than 5k records. Bummer.

Moving to trying 'Send HTTP Request to Sharepoint' action.

Super User
Super User

Re: 'Get Items' does not return all columns in Sharepoint List

@Pstork1 , do you know what HTTP query Sharepoint uses when you click "Export to Excel" from a Sharepoint list? 

This is the query I need. Can't figure out how to view request using F12 in Chrome.
Thank yoU!

Dual Super User
Dual Super User

Re: 'Get Items' does not return all columns in Sharepoint List

I'm not sure that's done through an HTTP query.  But if it is the best way to get it would probably be to use something like Wireshark or Fiddler.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Super User
Super User

Re: 'Get Items' does not return all columns in Sharepoint List

@Pstork1 , thanks for the quick reply. Yeah, I can't use those tools within my org (proxies, firewalls, etc.)

If anyone can pull this, might be useful workaround to the cumbersome workflow for pulling SP List items >5k.

Super User
Super User

Re: 'Get Items' does not return all columns in Sharepoint List

Ended up closely following this blog post: https://blogs.msdn.microsoft.com/svarukala/2017/08/08/iterate-and-get-all-items-from-a-sharepoint-la...

Have all ~35k records pulled from this list, but having troubles appending each 5k pull to the same .json file for export.

I'll get it!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,973)