Questions tagged [caml]

CAML (Collaborative Application Markup Language) is an XML based markup language used with the family of Microsoft SharePoint technologies (Windows SharePoint Services and Office SharePoint Server). For the Objective Caml programming language, use the tag ocaml.

CAML (Collaborative Application Markup Language) is an XML based markup language used with the family of Microsoft SharePoint technologies (Windows SharePoint Services and Office SharePoint Server).

Not to be confused with Objective Caml, the current implementation of the Caml programming language. For Objective Caml, use the tag.

Unlike plain XML, CAML contains specific groups of tags to both define and display (render) data.

CAML query syntax can be created graphically from an existing SharePoint list by using the U2U CAML Generator tool.

For getting started with CAML, please visit its MSDN page.

644 questions
0
votes
1 answer

CAML GroupBy usage when querying a list using the SPQuery or SPSiteDataQuery object

I'm not sure how to use the GroupBy clause when querying a list. The SPListItemCollection or datatable looks exactly the same regardless of the groupby clause. SPQuery query = new SPQuery(); query.Query = "
Edward Wilde
  • 25,967
  • 8
  • 55
  • 64
0
votes
1 answer

isnull and in statement in CAML

Is it possible to combine the sharepoint statement with the statement? I only managed to get it working using an but would be great if you could place the inside the directly. Thanks
Joseph Caruana
  • 2,241
  • 3
  • 31
  • 48
0
votes
1 answer

Can be get desired column from share point list?

I am using the following Caml Query to get data from a share point list. oSb.Append(" ") oSb.Append(" ") oSb.Append(" ") But this query is giving me all columns…
user1369925
  • 55
  • 2
  • 4
  • 12
0
votes
1 answer

CAML query with date filter, working in U2U query builder but not working in C# code

Here is a CAML query which works fine in query builder but does not work work when used in code. lstEmpQuery.Query = string.Concat("" + "" + …
Ishan
  • 4,008
  • 32
  • 90
  • 153
0
votes
1 answer

Why is this CAML Query is not filtering results from SharePoint Web Service call?

I am trying to filter the list of results returned by the following web service call to a SharePoint list. When I have query.InnerText = ""; the results include every row in the SharePoint list - including rows having an IN SERVICE DATE less than…
Mark
  • 1,455
  • 3
  • 28
  • 51
0
votes
3 answers

How do I get recurring SharePoint Calendar List Items

Im running this query on the same server as the web application, so SPQuery.ExpandRecurrence should work. However, with the following I only get 3 items in the returned list collection vs. the 3 items and the re-occurrences, all of which fall…
Marc
  • 1,178
  • 1
  • 18
  • 31
-1
votes
1 answer

CAML Query Failed After Implementing OR

In my SharePoint CAML query, when filtering with one input, it is successful. However, when I add in to include one more input, it failed. Below are the CAML queries. Is the error due to wrong formatting of Multiple Input? Single input…
gymcode
  • 4,431
  • 15
  • 72
  • 128
-1
votes
1 answer

Multiple listItemEnumerator issues on Sharepoint

I am attempting to display two different lists on a page, and it seems the 2 listItemEnumerator are having conflict. If I strip everything but my second Enumerator (listItemEnumerator1.moveNext), it seems to work. I have tried various combos, and…
-1
votes
1 answer

CAML Query with NotIncludes Fails when using Contains

I have the following CAML query which works perfectly: var emergencyCAML = "" + searchTerms[0] + "
-1
votes
1 answer

Caml Query for Sharepoint list columns

+items.text+Value Type='Text'> I have 4 Column i want to populate my data with respect to the first column selected as checkboxlist is fetching the first column of data
-1
votes
1 answer

Lookup Field Value JavaScript and CAML

I have a lookup field in SP2013 list which I am trying to get list items using Javascrip and CAML. My function is as follow: $(function () {if (healthInfoQuery && healthInfoQuery.Rows) { var liHealthInfoHTML = []; …
Mojgan
  • 165
  • 1
  • 2
  • 10
-1
votes
1 answer

Is it possible to retrieve SharePoint Lists by CAML request

Could anybody help me to retrieve SharePoint Lists (NOT List Items) by CAML request using Client Side Object Model (CSOM). I know how to get List Items using CAML query (I can use GetItems() method in a List object): public ListItemCollection…
Warlock
  • 7,321
  • 10
  • 55
  • 75
-2
votes
2 answers

CAML query on a SharePoint 2010 List?

Im the following code: string xpathresultBTADSLMAX = "BT/Max Standard"; if (xpathresult2 == "BT ADSL Max") { //Creating the CAML query to perfomr the query on the list to find the required values SPQuery query = new SPQuery(); //try to find items…
Dev P
  • 1,157
  • 5
  • 32
  • 54
-2
votes
1 answer

SQL Statement to CAML Query

I need help converting this statement to CAML equivalent: Where startMonth = 1 And endMonth = 2 And startYear = 2015 And endYear = 2016 And (system1 contains 'x' or system 2 contains 'x' or system3 contains 'x') And (status = 'completed' or…
ksinger
  • 1
  • 1
1 2 3
42
43