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

How to get data from a caml results using caml

The scene is: I've got items using caml on a list view(e.g. previewlist), and I'll have to query again from these items, is it possible using caml to query from SPListItemsCollection? as MSSQL we can do select * from(select * from tablename), but…
0
votes
1 answer

In sharepoint programming is it better to use CAML or Code

I am about to start creating a sharepoint features. I want to know what the recommended approach to creating lists, columns, content types etc is? CAML (xml etc) or Code object models? I have no problem doing either approach. Are there any major…
user1786107
  • 2,921
  • 5
  • 24
  • 35
0
votes
1 answer

Get recursive list with all Folders and Document Sets in SPList using CAML

I need to know if there is a way to return all files and document sets in a recursive object. I've written this code and it returns all folders and document sets but only as a flat list. SPQuery query = new SPQuery(); query.Query = @"
Eric Herlitz
  • 25,354
  • 27
  • 113
  • 157
0
votes
1 answer

CAML Query not working - stumped

I'm trying to use a CAML query to find a item from a SharePoint 2007 List based on the "cardID" value that is being retrieved through Javascript. I can see that the value is being assigned to the variable but whenever I try to add the query the list…
snapplex
  • 851
  • 3
  • 13
  • 27
0
votes
3 answers

How caml query returns null?

I have a caml query in my code to return some items of SharePoint list. I added the IF statement in case if query not find any matching item or returns NULL. SPListItemCollection Items = RiskAssesment.GetItems(new SPQuery() …
Rizwan
  • 63
  • 2
  • 5
  • 10
0
votes
1 answer

Algorithm to Parse CAML xml

I have a particular requirement to parse Sharepoint CAML and produce something else. The first scenario is to produce an SQL Query. Are there any best practice dev tools/algorithms when parsing XML? I am thinking of using Linq To Xml as my tool.…
Joseph Caruana
  • 2,241
  • 3
  • 31
  • 48
0
votes
1 answer

I got strange exception when getting items by CAML query

I got strange sharepoint exception with empty message when trying to get items by query: -1
Ievgen
  • 4,261
  • 7
  • 75
  • 124
0
votes
1 answer

Sharepoint CAML Date query

im getting different results based on the date i use to search on. Here are the 3 records i want to display, their values for EVENTDATE, and ENDDATE are as follows 1, 2009-08-11T00:00:00Z, 2009-08-14T23:59:59Z 2, 2009-08-11T00:00:00Z,…
chicken
  • 1,618
  • 5
  • 24
  • 35
0
votes
1 answer

U2U caml query only brings back 30 rows

I am currently trying to use U2U caml query builder to search through a sharepoint list, and although there are 400 records, regardless of the filters I use the result only brings back 30 rows even though there should be a lot more. Anyone got any…
perrycoke
  • 45
  • 5
0
votes
1 answer

CAML GroupBy Sites

I am creating a webpart which queries all lists of content type "A". The query will work on the lists located on the site the webpart is currently being loaded from and all sub sites. I have been able to accomplish this without a problem in a…
Orlando
  • 935
  • 2
  • 20
  • 42
0
votes
1 answer

How to get a single listitem field value?

I have a SharePoint list with Roles as the columns(Admin, Viewer, Manager) and Document Types as the items (Word docs, PPtx docs, excel docs). I have filled in the corresponding values with the permissions each Role has per Doc Type. I have built a…
0
votes
1 answer

Get URL of image from Picture Library using CAML

How is it possible to get the URL of an image that is stored in a Picture Library using CAML? Currently, I've made a CAML Query and run it in the U2U CAML Query Builder, and am seeing values like ows_LinkFilename, ows_LinkFilenameNoMenu, and…
0
votes
2 answers

UpdateListItems...almost works

I've been banging my head against the wall for a bit too long now. I've been using the lists.asmx webservice for my Sharepoint server (2007, so no client object model unfortunately) and I've been able to successfully update every desired item field…
Nate Frueh
  • 79
  • 1
  • 8
0
votes
1 answer

Sharepoint javascript get_id error

Alright, this one's got me seriously stumped, after trying things out for hours with the block of javascript below I'm still getting the same error in IE's javascript debugger. The error I'm getting is SCRIPT5007: Unable to get value of the property…
Him_Jalpert
  • 2,476
  • 9
  • 31
  • 55
0
votes
2 answers

"The property Query contains an invalid value." - I can't see it

query.Query = @" [LONG GUID]
user1017882
1 2 3
42
43