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

How can I sort items in a splistitemcollection?

I have a problem in sharepoint webpart. I have a custom list where in I have a column name order with type number. then I created a webpart that display the list and sorted by the column order. I have this caml query string test = + …
user1312660
  • 31
  • 1
  • 2
3
votes
1 answer

Possible to use Aggregation Function on Caml Query?

Is it possible to group a sharepoint list and use aggregation functions?(sum, count etc)
TayfunSezer
  • 89
  • 2
  • 11
3
votes
4 answers

Determine the Next SPListItem ID in a MOSS SPList?

I am trying to determine what the ID of the next list item to be created in a MOSS list will be. Is there any way of doing this? Thanks, MagicAndi
Tangiest
  • 43,737
  • 24
  • 82
  • 113
3
votes
1 answer

Difference between StaticName and InternalName (in the SPField class)

I want to make a CAML query semi-smart - in that I can give it a Title (which is what the end user sees) and it looks up the appropriate "Title" to pass as part of the CAML query: var caml = ""; It…
Goyuix
  • 23,614
  • 14
  • 84
  • 128
2
votes
1 answer

Can I still use CAML for this query?

I had a question earlier (that was solved) about why I was limited to two paramters in CAML. For reference: Trouble with OR in Sharepoint CAML What I now want to know is, can I reformat this CAML query to accept 5 OR parameters, where I collect ALL…
Wesley
  • 5,381
  • 9
  • 42
  • 65
2
votes
1 answer

SharePoint: Unable to fetch information from an external list

I am trying to fetch information from an external list using the following CAML query. 98f68099-2ec8-4b68-95dc-607f0d50520b The EventID field's type is…
Arsalan
  • 151
  • 1
  • 2
  • 11
2
votes
1 answer

SharePoint Lists.asmx: query returns "deleted" Calendar items?

While running caml query's against the sharepoint list.asmx service, I have this strange behaviour that the GetListItems method also returns deleted items; found item: test found item: already done found item: recurring found item: recurring event…
Obelix
  • 708
  • 11
  • 24
2
votes
1 answer

Update only Minor version in SharePoint when updating via CAML

I am using CAML to update a sharepoint list. It is part of a service that runs nightly. The update is causing a major version update every time it runs. It would be nice if I could only change the minor version seeing that my just updating some…
2
votes
2 answers

Sorting List Items (Latest one first)

I am having trouble displayin the values of list itmes in the proper order. The following are the fields in the list (with their actual system names): -Title -Category -NominatedWon -Logo The "Title" field contains year values eg, "2011", "2010",…
Dev P
  • 1,157
  • 5
  • 32
  • 54
2
votes
1 answer

Field not displaying on list with Content types Inherits="False"

I've defined a content type 'related links' and set Inherits="False" and added line to remove out-of-the-box 'title' field as I don't want it showing in the view or new/edit/display forms, see (OPTION 1) in CAML below.
Gerard
  • 75
  • 1
  • 8
2
votes
1 answer

Build CAML dynamically with Javascript

I'm looking for a function or code snippet or some starting help in creating a CAML builder in JavaScript. Building nested ORs shouldn't be a problem, e.g. (pid == 101 || pid == 102 || pid == 105) It's just a case of wraping groups of two in tags.…
Fergal
  • 2,484
  • 2
  • 36
  • 48
2
votes
0 answers

How to get Attachment file sizes in SharePoint 2007 in a SOAP request

I have a custom list on a sharepoint server. Each list item contains multiple file attachments . I am connecting to server with a SOAP-envelope request with this:
meowmeow
  • 41
  • 5
2
votes
1 answer

Searching Attachments in SharePoint 2010 Lists using CAML

I need help on searching attachments i.e Word Document, PDF etc which are attached to the list during inserting Item in SharePoint 2010 using CAML queries. I tried with this query
Abhijith
  • 23
  • 1
  • 3
2
votes
1 answer

CAML to show only Sites in Sharepoint 2007

I need to view only the available sites defining a CAML-structure view in the Content and Structure Reports webpart. I've tried using both Stramit Caml Viewer and U2U Caml Query Builder 2007 but they doesn't seem to support the objects I wan't to…
user90724
2
votes
1 answer

Need Help w/ SharePoint CAML Query

Here's what I'm doing (this is a quick search on Google and just one of the first results): http://msdn.microsoft.com/en-us/library/cc300163(v=office.12).aspx My databound DropDownList items looks like this: All…
a11smiles
  • 1,190
  • 1
  • 9
  • 21