Tag Info

Hot answers tagged

4

You are missing the <View> tags in your ViewXml (see example here) It should be string qs = String.Format("<View><Query><Where><Eq><FieldRef Name=\"Title\"></FieldRef><Value Type=\"Text\">{0}</Value></Eq></Where></Query></View>", listItemTitle); query.ViewXml = qs; In case of ...


2

It seems that you are missing <And> and also I think the date should be <Geq>. Example of date CAML Query: <Where> <Geq> <FieldRef Name="Created" /> <Value Type="DateTime"> <Today OffsetDays="-180" /> </Value> </Geq> The above code would get all items which were created in the ...


1

You need either camlQuery.set_folderServerRelativeUrl(folderPath); (JSOM) or SPQuery.Folder (Server API). Both respect the "Recursive" attribute. MSDN references: SPQuery.Folder property CamlQuery.FolderServerRelativeUrl property


1

You cannot get the document icon as a property, you will have to make the url for it. SharePoint has already lots of icons available in the DOCICON.xml file at C:/Program Files/Common Files/Microsoft Shared/web server extensions/14/TEMPLATE/XML Simplest way could be to load based on file extension "/_layouts/images/icXXX.gif (where icXXX, would be ...


1

Regarding grouping in SharePoint REST, according to Use OData query operations in SharePoint REST requests, Grouping is not supported. One of the solution, is to apply grouping for the JSON results returned from REST endpoint. Example Suppose the following function for getting list items via SharePoint REST API: function getListItems(url, listname, ...


1

You do not need a CAML query : Remove-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue try { # REQUIRED: URL to source SharePoint site with list $srcListSiteUrl = "http://testsrv/sites/home/pre-sales" # REQUIRED: Name of source list. ...



Only top voted, non community-wiki answers of a minimum length are eligible