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
5
votes
3 answers

Accessing last record in a sharepoint list via CAML query

i ve some problem in accessing last record from sharepoint list through CAML query,can any one help me in this regrad;i have a sample list called 'MainHeads' which contains the information like HeadID,Category,and headName.... Mehboob Pakistan
Mehboob Ali
  • 51
  • 1
  • 1
  • 3
4
votes
2 answers

How to create a wiki page (=item) in Sharepoint programmatically?

how do I create a wiki page and add a title, as well as some content in sharepoint (via webservices)? This is my SOAP message so far: Cooking Wiki
Stefan
  • 28,843
  • 15
  • 64
  • 76
4
votes
2 answers

How to get all folder AND items from a sharepoint list?

I have a list containing folders and items. The folders are a specific content type based on folder, but with properties. A folder can contain subfolders and subitems. A subfolder can contain sub-subfolders and so on. I already managed to get all…
LMW-HH
  • 1,193
  • 2
  • 15
  • 31
4
votes
3 answers

Good beginning CAML tutorials?

right now I'm trying to get CAML down pat in SharePoint, where is the best place to start for this? The MSDN content doesn't impress me much as being somewhat cryptic, though the Wikipedia entry was rather good for starting out. Thoughts? …
tekiegreg
  • 1,667
  • 6
  • 25
  • 41
4
votes
1 answer

Physical equality test for functions in Caml

In Caml, the operator == tests the physical equality between two values of a same type. It can be used in particular to compare functions in this way. One has for instance # print_string == print_string;; - : bool = true but, surprisingly, # (==)…
Samuele Giraudo
  • 409
  • 2
  • 14
4
votes
1 answer

How to get sharepoint folder by name using CamlQuery

So I need to rename a sharepoint folder in a plugin from crm. The name of the folder is a fullname from a contact but in case of a typo in the name there needs to be a plugin to change the folder name in sharepoint aswell. I found a way to do this…
el shorty
  • 237
  • 2
  • 5
  • 14
4
votes
2 answers

CAML Query to SharePoint list returns entire set

I've been running into an issue where if I execute a CAML query in C#, my ListItemCollection contains the entirety of the list. Here is a snippet of my scrubbed code maybe you can see what I've done wrong. While debugging, I've found that that the…
Jonathan
  • 479
  • 3
  • 8
  • 17
4
votes
4 answers

Use UpdateListItems webbservice on Sharepoint using Infopath form without managed code

I need to create a Infopath form that users can use to create posts and update a Sharepoint list. I have located the list GUID and the Lists.asmx webbservice. I have made sure that I am admin with full rights on the List in question. The list is a…
Peter Wirdemo
  • 498
  • 2
  • 11
  • 25
4
votes
1 answer

CAML : Cannot complete this action

It seems my following query is failing and throwing "Cannot complete this action".However when I test this query in CAML Query builder it's working fine.
Ris
  • 1,152
  • 7
  • 29
  • 63
4
votes
1 answer

Lists.AddAttachment throws object reference error

I'm trying to add an attachment to a list item I just created on a sharepoint server using CAML. The code below is simplified (for example the path is normally a variable and the 2nd field (the item id, here 16847) is normally the id I get back from…
Toon Casteele
  • 2,479
  • 15
  • 25
4
votes
1 answer

Update SharePoint file field that is of type choice muliple selection

I am using UpdateListItems method (Lists.asmx web service) to update fields of an uploaded document in one SharePoint document library. In my case, I have a document library called Schedules. In it, there's a field called 'Day of the Week' which is…
Boris
  • 9,986
  • 34
  • 110
  • 147
4
votes
2 answers

Pass a parameter value to a Dataset Parameter in SSRS 2008

I have a dataset with a parameter as which is passed to a query as shown below. The issue here is DataSet parameter queryOptions does not accept the value from the Report Parameter Date. If i hardcode any value e.g 08/11/2012…
Ishan
  • 4,008
  • 32
  • 90
  • 153
4
votes
2 answers

Sharepoint 2010 client object model with camlQuery - file download but no content / 0 byte

I'm trying to download a txt file from a subfolder within a folder in a document library. I'm using camlQuery to achieve this. Unfortunately, i get no content of the txt file. It has 0 byte. public void SaveFolderFiles(string fileName, string…
float
  • 1,265
  • 5
  • 22
  • 38
3
votes
2 answers

How to Return Only Certain Columns of a List When using the SharePoint Web Service?

SharePoint Web Service has a method with the below signature: public System.Xml.XmlNode GetListItems(string listName, string viewName, System.Xml.XmlNode query, System.Xml.XmlNode viewFields, string rowLimit, System.Xml.XmlNode queryOptions, string…
The Light
  • 26,341
  • 62
  • 176
  • 258
3
votes
1 answer

Trouble with OR in Sharepoint CAML

I'm trying to query a list and get newsletter articles back that match the list of active newsletters. The trouble comes in when trying to pull items via CAML. If I do an OR loop with two CONTAINS, it works great. For example:
Wesley
  • 5,381
  • 9
  • 42
  • 65
1 2
3
42 43