I'm new to the Sharepoint client object model and I'm having difficulty getting all of the items from a particular List
along with their column data. I think it's confusing me because it's actually a Folder
set to display as a List
which is then filtered by a View
!
The setup is like this:
List: Managed Collateral
View: Proposal Collateral
Folder: Proposal Collateral
Folder relative URL: /sites/collateral/Managed Collateral/Proposal Collateral
Which looks like this:
I can use methods like Lists.GetByTitle("title");
and GetFolderByServerRelativeUrl("path");
to get the List
and Folder
objects respectively. I get the correct Count
returned from these so I think they're returned correctly.
I've tried iterating through these but I can only ever seem to access static properties like file.Name
and file.TimeLastModified
, but my list shows columns like Content_x0020_Type
and Proposal_x0020_Type
.
I've tried things like file["Content_x0020_Type"]
but that didn't work for me either.
How do I get a Folder, then loop through each item and get the data from the columns from the associated List/View?
I can post my code if needed, but I felt it would just confuse matters.
Thanks!