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 causes ServerException

I'm trying to execute following CAML-query to SharePoint within Client Object Model: 2014-10-10
Vladimir
  • 155
  • 1
  • 10
0
votes
1 answer

Retrieve SharePoint list in DataTable with Condition

** I have a Sharepoint List called "Resources" and have various Fields as shown below and same returns as DataTable: ID Title Role LoginName Enable[Yes/No] 1 Pranav Developer BW\PPB Yes 2 Rohit Tester …
Pranav Bilurkar
  • 955
  • 1
  • 9
  • 26
0
votes
1 answer

And multiple in a camlquery

I'm trying to do a camlquery with 3 and where but i get back an exception: Values doesn't fall within expected range I've tried to place the and tag everywhere but still doesn't work List columns = new List(); …
user1898765
  • 323
  • 1
  • 6
  • 18
0
votes
1 answer

Getting SharePoint data from list that uses alternate list from a SPServices query

I have a list that that looks up another table to get the value for that data. I can query the table directly, and it returns the data I want. I have another table that uses the previous table as a selection for a field in it. I have queried all…
trout0525
  • 41
  • 7
0
votes
1 answer

CAML Query with IN + AND or other

My question is about caml query SP2010, i've got colums as follow: Country, Role, Species, Species, Topic, Documenttype, Searchtext. There is possible that user will search by Countries (multiple->UK,France,Belgium) and type document name like…
Dalli
  • 64
  • 2
  • 11
0
votes
1 answer

Get sharepoint list items by lookup value

I have Tests and Methods Lists. Tests: TestName Test1 Methods: MethodName, TestName(look up wit Method1, Test1 Method2, Test2 TestName) I want to filter methods with caml query by lookup value. var metodList = web.Lists["Methods"]; …
Erkan
  • 35
  • 1
  • 10
0
votes
2 answers

SPCrossListQuery fails to bring back results

I am calling SPWeb.GetSiteData(anSpCrossListQuery). It fails to bring back any results or any errors when I call it with an accidental space at the end of the CAML query clause. Anyone have an idea why?
Nat
  • 14,175
  • 5
  • 41
  • 64
0
votes
2 answers

A jscript variable in a Query

Maybe a very simple question. How can I put in this code mr. R. Sanches A variable from jscript in the…
user300304
  • 39
  • 1
  • 1
  • 6
0
votes
1 answer

ocaml weired recursion

I am trying to calculate the square root of a number by Ocaml, this is my code : let isclose x y = abs_float(x -. y)<0.001;; let average x y = (0.5*.x)+.(0.5*.y);; let rec guess x y = if isclose y (x /. y) then y else guess x (average y x/.y);; let…
volatile
  • 899
  • 10
  • 22
0
votes
3 answers

Create CAML query with have a value field with SharePoint column-SharePoint 2010

I have a SharePoint list. It has two columns Start date and End date. I need to query and get data if (start date + 7 days> End date). Through CAML builder its not possible to have a SharePoint column on value node and build the query. Any idea? I…
Sivakumar Piratheeban
  • 493
  • 4
  • 11
  • 39
0
votes
1 answer

GetListItems not returning items in SharePoint 2013

We are querying SharePoint 2013 webservice method - GetListItems to fetch list of items in a list but it is returning 0 items. The strange thing is same piece of code was working for SharePoint 2010 as it used to return files list in a specified…
Ali
  • 5,499
  • 7
  • 25
  • 28
0
votes
2 answers

CAML Query SharePoint AND/OR

I have a SharePoint 2010 list with the following site columns: | ID | Title | Status | Assigned To | I am trying to create a CAML query that will return all list items where Title=1234 AND Status!=In progress OR Completed | Title | Status | |…
user3586514
  • 123
  • 1
  • 2
  • 4
0
votes
1 answer

CAML Query for multiple branches of "And-Or-In" statements

I'm using CAML Query to pull items from a list. I tried re-arranging the structure of my query, and still would not return anything. I try not to use CAMLQuery Builder (doing it manually).
Marlo C
  • 587
  • 3
  • 14
  • 26
0
votes
1 answer

Comparing dates in Sharepoint 2010 CAML query

I'm running into an interesting problem when trying to query a Sharepoint list. Here is the query so far: camlQuery.ViewXml = new XElement("View", new XElement("Query", new XElement("Where", new XElement("And", …
GGMG-he-him
  • 394
  • 1
  • 7
  • 26
0
votes
1 answer

Caml builder query doesn't work in code

i'm in trouble here! I have a sharepoint site in which there is a photo gallery list (PhotoGallery). I need to query this list do bring back the images from a specified gallery(folder). I developed a web part with a select menu which loads all the…
mnatan.brito
  • 883
  • 5
  • 18
  • 32