cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

16 REPLIES 16
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!

Rodolfo1840 Advocate III
Advocate III

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

In our case, it didn't work even choosing: "Use all columns (Do not limit)".

 

Our list has 19 columns and it's getting only 11 columns.

jbenetti
Frequent Visitor

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

I only have 240 list items and Get Items with return all colums set does not work. Seem like every component of this softwars suite has serious gotchas. I guess I have to find a work around because Microsoft has let us down, yet again. Sorry MS your stuff is not ready for prime time.

 

If only this stuff worked as well as a LAMP stack.

Sigh

Highlighted
Super User
Super User

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

@jbenetti, try moving to the 'Send HTTP Request to Sharepoint' action.

 

Docs here: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?t...

Dual Super User
Dual Super User

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

Unless you are running into memory limitations due to really big columns there shouldn't be any reason that you can't get all the columns when you tell it not to limit based on Columns.  Have you tried creating a view that has the columns you need and then setting the Get Items to use that View?  What columns are missing when you set it to not limit columns based on a view?



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

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

Yes I have tried selecting a view that shows the columns I am wanting to retrieve.

I have used the return all columns and automatic table columns in the create html table that follows. The column is not returned.

 

Ironically the column I want to retrieve is where I document the turn backs our machinists face. Turn back being something that prevents the machinist from doing his/her work.

PowerApps finds it

SharePoint, no problem

Flow nope ain't happening.

 

So now I guess I have my very own turnback. 

not much fun, not impressed.

jbenetti
Frequent Visitor

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

Thanks, I'll look into that.

Dual Super User
Dual Super User

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

What type of column is it? 



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

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

The field is single line of text so should be easy example content 'GW IW TW'

jbenetti
Frequent Visitor

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

On a fun note, Microsoft Access finds the field also. Of course it's a table in Access and a list in SharePoint because well wtf I have not idea why lists aren't tables and columns aren't fields.

 

SMFH

Mark_Harby
New Member

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

Hi jbenetti

 

Did you get any sort of resolution to this as I am seeing this with Power Automate (the new name for Flow) ?

 

Have tried everything mentioned here, don't really want to start messing around with html query hacks to extract basic information from a SharePoint list.

 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (6,794)