An XML-based language that is used to build and customize Web sites based on SharePoint Team Services from Microsoft.

learn more… | top users | synonyms

1
vote
2answers
72 views

CAML Query search exact word in comma separated

I have 2 list items that contains a title field with following string value Item 1 Title : apple,blackgreen Item 2 Title : apple,black I want to query the list item if comma separated word in the ...
2
votes
3answers
214 views

CSOM - CAML : Get document icon

I was using JSLink to change the display of a documents webpart. I was retrieving the document icon url set by Sharepoint for a document library item like this: (it can be shortcut icon (DOCLINK.GIF),...
0
votes
1answer
42 views

Retrieve all Comments by UserId in Discussion Board

It try retrieving all Comments from a single person inside a discussion board. This is the CAML: <View> <QueryOptions><ViewAttributes Scope='RecursiveAll' /></QueryOptions> ...
0
votes
0answers
35 views

CAML Query Help - Sorting By Month within a UTC Date Field

Current Query: <Query> <Where> <Eq> <FieldRef Name='Active'/><Value Type='Integer'>1</Value> <Eq> </Where> <...
0
votes
0answers
21 views

Joining 3 lists does not returns any values. If one List is empty

I am using the following article to join 3 lists https://edanan.wordpress.com/2012/04/28/sample-caml-joins-for-more-than-2-lists/ Here I have got 3 lists(Country,city,client) City is having a ...
1
vote
1answer
60 views

Export CAML query data into Excel

I am using JSOM to fetch the data from sharepoint list and binding into html table from JS file .And I would like to export the query(CAML Query) data into Excel,Can anyone help me how can I do ...
1
vote
3answers
40 views

CAML Query with AND OR

I'm struggling to get a simple query working and would appreciate any assistance in pointing out my error/s. I need to return all "Chart Type" that equal "Jacket" for "2016" in both "Mar" and "Feb". ...
1
vote
4answers
277 views

How to pass a string(date) in a caml query to get listitem based on datetime type of field

I want to pass a string(date) in a caml query to get listitem based on datetime type of field. I am not getting any value in return. Please suggest. Below is my code: ` private SP.ListItem ...
0
votes
0answers
119 views

How to pass multi choice(checkbox) values in a caml query to fetch item from sharepoint list in o365

Below is my code: SP.ListItem listItem = null; CamlQuery camlQuery = new CamlQuery(); camlQuery.ViewXml = @"<View><Query><Where><BeginsWith><FieldRef Name=" + field....
0
votes
0answers
37 views

Caml query on large list fails filtering on indexed column

I've got a large list that has the TicketId field indexed. Using JSOM, I do this: var cntx = SP.ClientContext.get_current(); var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml("<Query>...
2
votes
1answer
56 views

SharePoint 2013 SOAP Request with GetItems fails with NullReferenceException

I'm pretty lost here. I've inherited legacy code which uses SOAP to fetch SharePoint content. One method posts a SOAP request against SharePoint to get the HasUniqueRoleAssignments property of list ...
0
votes
1answer
30 views

Fetch the data from Date and Time Calculated column

I am trying to fetch the result from list based on 3 conditions( Month Name,Employee,Department). In my SharePoint List(Month Name is calculated column fetching month from column "Joining Date") . ...
1
vote
1answer
548 views

CAML query - examine Contents column used in freetext predicate

In my query I use the freetext predicate: and freetext(Contents, 'my search string') I'm getting some unexpected results from this search, namely the documents contain no relevant content, yet are ...
0
votes
1answer
56 views

SharePoint notification

I am trying to make a dynamic notification field which shows the number of for example not approved items in a list. But this needs to be shown always, wherever I am in SP. It should look like: ...
1
vote
1answer
79 views

Filter out hidden folder using client object model in SharePoint 2010 / 2013

I need to do the same thing as on this thread: Filter out hidden folder using client object model in sharepoint 2013 However my code needs to run on SharePoint 2010 and Sharepoint 2013. I'm using the ...
3
votes
2answers
17k views

How to use GroupBy in CAML query

I have simple list, consisting of 2 columns - Date, Order. Now what I want to do, is to GroupBy Date and count orders. So, for example if I have following items Date Order 08/10/2012 5 08/...
0
votes
4answers
123 views

User-type fields in CamlQuery ViewFields return null

I am trying to return several User-type fields from SharePoint 2013 like this: using (var clientContext = new ClientContext(myUrl)) { var list = clientContext.Web.Lists.GetByTitle(listName); ...
0
votes
0answers
38 views

SharePoint 2013 Filtering with CAML Query in a Knockout List

Thanks in advance; having some trouble here. I have a List Called 'Projects' that uses binding via Knockout View and View Modal based on SP Services. I am new to Knockout, and I'm having difficulty ...
0
votes
0answers
42 views

Caml Query for dynamic SP custom list filter

Good day, I need to make a custom dropdown for filtering a list view. I made a dropdown by adding a content editor in the view and just added a <select> dropdown. Now when I open SPD and edit ...
0
votes
1answer
44 views

List join via CAML with SharePoint Designer for HTML View

is it possible to make a Join over multiple Lists with a CAML query like in C# oder JSOM and show that view on a SharePoint page? I'm using Sharepoint Designer 2013 and Sharepoint 2013. I have the ...
2
votes
2answers
64 views

CAML query for filtering list view

I have a SharePoint list that I need to filter according to this: First of all, the items must be Booked by = Travel and Meeting Support and the Category should never be visible if they are Cancelled....
0
votes
2answers
1k views

Limit data returned by GetListItems of Lists.asmx service with CAML

I want to limit data returned by GetListItems of Lists.asmx service. Does anyone know why despite the query options below I get all items? "<GetListItems xmlns=\"http://schemas.microsoft.com/...
1
vote
1answer
32 views

Get the items in descending order using caml query

i am trying to get the comments from Comment List in a 'Descending' order , the query that i am using is : "<Where>" + "<Eq>" + "<FieldRef Name='TopicID' /><Value Type='...
1
vote
1answer
68 views

CAML query with OR returns no result, where single part of it returns results

I have a CAML query which queries 2 multi taxonomy (managed metadata) fields. I use the IN operator for this. The query should return items where in one of the fields a match was found, so either in ...
1
vote
1answer
54 views

Need CAML query LookupMulti column help, Is it possible?

I am trying to create a CAML query for querying list, here is my problem. There is a list Employees and it has a LookupMulti column for Hobbies. I want to get all Employees who have selected Reading ...
1
vote
2answers
1k views

Retrieve List items using CAML Query

I have a list which contains 3 columns -ID, TicketState and EndDate ID TicketState EndDate(DD-MM-YYYY) 1 Open 10/10/2012 2 Closed 01/12/...
1
vote
2answers
38 views

Better logic to create CAML queries

Assume i have 3 checkboxes in my webpart Properties. Checkboxes are for selecting categories. In my SharePoint list i have multichoice column called category and values in it are CAT1,CAT2 and CAT3 ...
0
votes
0answers
32 views

How can you get results from a SharePoint document library (with folder and child items) in a SSRS report?

I have a SSRS report that uses a SharePoint document library as a data source. The issue is that the list has folder and in those folders are child items. The dataset is only returning items from the ...
0
votes
1answer
50 views

Access Denied when executing a CAML query

I am running a SharePoint Online provider-hosted app, and via CSOM, I am loading the contents of a list with the following code: var items = List.GetItems(CamlQuery.CreateAllItemsQuery()); ...
3
votes
0answers
46 views

Efficient way to Query Large lists to get little data

I am querying a large list with around 25000 items but the data returned is quite small, like 20 items top. Can you please let me know the best practices to do so, for e.g. orderby Indexed column. I ...
0
votes
1answer
40 views

Join 3 lists initiating the join from the middle list

I need to join 3 Lists, but i have no access to the on-prem sharepoint to test my idea right now. So I hope anybody can tell me, if it's possible. I have Lists A, B and C. LookupFields are connected ...
0
votes
3answers
183 views

Use REST API with CAML query to fetch the files inside multiple folders in single REST Call

I have a scenario where i would like to fetch all the files from multiple folders using REST API. I would like to filter the data in such a way so i can ignore the folders and fetch only the files ...
0
votes
2answers
43 views

Nested AND OR inside my Content Query web part's CAML query is not working well

I added a content query web part to my team site collection, then i export it , and i modified the QueryOverride tag as follow:- <OrderBy><FieldRef Name="Created" Ascending="FALSE"/></...
1
vote
1answer
67 views

Parsing a CAML query in C#

I have a SharePoint 2010 solution with a custom web part. I am using C# in Visual Studio 2012. The user has selected a view from a list, which I am storing as an SPView object, mobjView. I want to ...
1
vote
0answers
35 views

Timeout using SPsite object and U2U Caml query

We have 2 collection. 1 is test and other is production environment. In test collection, I'm writing console application which is using SPSite and SPWeb objects. But it takes nearly 40minutes to get ...
1
vote
1answer
48 views

CAML query filter with period (.) not working

I am using SPQuery object and SharePoint list item having period inside its title field value. I tried many ways but no luck. Is it correct that CAML query filter not works with Period? OR I made any ...
1
vote
1answer
61 views

How to build a CAML query with several nested OR's using a loop

I'm new to SharePoint development and I need your help to solve this issue.I've created a CAMLQuery builder class. public class CAMLQueryBuilder { #region Builder part public static string ...
2
votes
1answer
61 views

GroupBy site name inside my CAML query

I wrote the following CAML query to be used inside my Content Query Web part, but i am not sure if i can define to Group the retrieved item by site name :- <property name="QueryOverride" type="...
0
votes
0answers
43 views

CAML Query using <In> element breaks after >60 values are placed inside

The following CAML Query works on my list that has over 5,000 items because the Title field is indexed: <View Scope="RecursiveAll"> <ViewFields> <FieldRef Name="Editor" /> ...
2
votes
1answer
93 views

Sharepoint 2010 And Angularjs

I am building an application in AngularJs (Front End). I would like to make it Dynamic using $route etc. The back end consists of a SharePoint 2010 Server with Categories, Look Ups, etc. I have been ...
1
vote
1answer
97 views

Fetch list item if specific column is modified using caml query

I need to fetch item from SharePoint list using CAML query, if specific column is modified. How to achieve this?
9
votes
4answers
6k views

Caml to get today's birthdays

I have a list with birthday field (DateTime). How do I write caml query to retrieve only the records where birthday falls on today (i.e. only comparing day and month value of birthday column to today'...
0
votes
1answer
89 views

CAML Query Builder for app web (add-in web)

I am trying to generate a query using U2U CAML Query Builder for a list on an app web (add-in web). When I try to connect using credentials of the current user, which can connect to app web in the UI, ...
5
votes
1answer
58 views

CAMLQuery Comparison

I'm trying to perform a CAML Query test and display the results. For example I'll be using two columns in a list; one called StartDate another called EndDate. Currently, I've a CAML Query that ...
4
votes
2answers
1k views

How do I get list items' attached files with CAML via REST API?

I'm retrieving items from a list. The list contains entries which have attachments. Can I modify my query to include the attachment URLs? What's the most efficient way of doing this? <View> <...
2
votes
2answers
67 views

CAML Query Where (x AND y) OR Z

I've been struggling with this all day. I've referenced several SO questions/answers but to no avail. Not quite sure what I'm doing wrong. I also cannot use a CAML Builder, unfortunately, due to some ...
2
votes
1answer
84 views

Lookup column value not updated - ListsWebServices and Asp.NET

I am having trouble inserting new record in "Clients" list on our server, I am in learning phase for working with SharePoint Lists Web Services and I am trying to insert a new item in a list which ...
1
vote
0answers
96 views

CAML query results multiple row for people picker field with multiple value in SharePoint webservices

Below is the SharePoint web service I am using to get list items from a SharePoint 2007 calendar list. The calendar list has a people picker field which can have more than one user. Now as I run the ...
3
votes
1answer
6k views

CAML and External List - pass parameter to ReadList (finder) method

I have a Finder method defined on an External Content type (created with Visual Studio). Whan That method receives a parameter. So the method is something like ReadList(string partnerName). I have ...
4
votes
1answer
3k views

Help converting XmlNode to DataSet/DataTable, from SharePoint Web Services, Lists.asmx

This is my first post here, but used this site a lot :) My question is how I can convert an XmlNode, obtained through the Lists.asmx SharePoint web service, to a DataSet / DataTable. The reason I ...