Get “Description” field from SharePoint Document Library using Client Object Model?

SharePoint has two types of names for columns, the internal names and the display names. "Description" is more likely the "Comment" internal field.

Up vote 1 down vote favorite share g+ share fb share tw.

I'm using the following code: ClientContext ctx = new ClientContext("SiteUrl"); List lst = ctx.Web.Lists. GetByTitle("DocumentLibraryname"); CamlQuery cq = CamlQuery. CreateAllItemsQuery(); ListItemCollection lic = lst.

GetItems(cq); ctx. Load(lic, items => items. IncludeWithDefaultProperties( item => item.

DisplayName, item => item"Description")); ctx.ExecuteQuery(); foreach (ListItem l in lic) { Console. WriteLine("title: {0}, DisplayName: {1}, Modified: {2}, Description: {3}", l"Title", l. DisplayName, l"Modified", l"Description"); } If I were to remove the "item => item"Description", and l"Description" the rest of the results would be returned.

What is special about the Description field in a SharePoint document library? How can I return the contents of a Description field? Thanks in advance.

C# sharepoint2010 client-object-model link|improve this question edited Feb 1 at 16:03Scott Smith59628 asked Feb 1 at 14:55rross17013 50% accept rate.

SharePoint has two types of names for columns, the internal names and the display names. "Description" is more likely the "Comment" internal field. salaudeen.blogspot.com/2011/06/sharepoin... Here's a list of SharePoint 2010 internal field names, as well.

aarebrot.net/blog/2010/06/frodes-awesome....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions