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

Alternative to foreach items in a sharepoint list

I MODIFIED THE CAML AND IT'S NOW WORKING AND DOES NOT LOOP THROUGH ALL THE ITEMS IN A LIST. I am looking for list items where workflow status equal "Error Occurred". I have the following code and it's working fine. However, there are 124,000 items…
Ninja Cowgirl
  • 10,421
  • 8
  • 33
  • 41
0
votes
1 answer

Query to find if a folder exists

I have this query which attempts to find this record (which I know exists) in the AllDocs table within a Sharepoint content database: The record has these values DirName: /MYSITE/MYLIST/A_FOLDER LeafName: B_FOLDER So the URL looks like: …
Francis Ducharme
  • 4,848
  • 6
  • 43
  • 81
0
votes
1 answer

CAML query - contains empty string

I would like to write CAML query for SharePoint 2007 which have Contains query. The only problem is that I want to use logic like: If my search query has value, search for that with contains query If my search query is empty, select all items from…
Tomasz
  • 2,051
  • 3
  • 31
  • 64
0
votes
2 answers

How to implement Optional Parameters filtering using SSRS report against Sharepoint List

I wonder if I can create conditional Caml filtering within the report itself.. to modify the Caml query based on the filter parameters provided. If not, then I'm seeking advices on the best method to create SSRS reports within SP2010 that can do…
0
votes
2 answers

Unable to remove System Page fields from my content type with

I'm creating some content types in a feature for a publishing site in SP2010 RC using VS2010, and I am unable to remove the out-of-the-box Contact fields included in the Page content type with RemoveFieldRef. My definition looks like:
Henry C
  • 4,781
  • 4
  • 43
  • 83
0
votes
1 answer

Strange behaviour of CAML question - why?

I'm using caml query to retrieve data from sharepoint list. The issue is that the query returns one record when it shouldn't, and this takes place only when I'm using this query in my own code. When I'm using the same query, on the same list by U2U…
truthseeker
  • 2,214
  • 6
  • 30
  • 53
0
votes
2 answers

CAML Query - Delete 1 Item

CAMLQuery: " " + itemid + "
Corbin Spicer
  • 285
  • 1
  • 8
  • 26
0
votes
1 answer

CAML / SPServices / JQuery Error

I have the following code: function ViewItems() { var liHtml = ''; //Set the variable to nothing alert($('#categoryselect').val()); $().SPServices({ operation: "GetListItems", async: false, listName:…
Corbin Spicer
  • 285
  • 1
  • 8
  • 26
0
votes
1 answer

SharePoint - provisioning url properties through CAML?

Is there a solution to the following that I am missing in SharePoint/CAML. Note that I'll give a specific example of using a URL on a Redirect Page (publishing feature content type), but the issue is broader in scope than provisioning a Redirect…
Brian
  • 1,383
  • 3
  • 16
  • 30
0
votes
1 answer

pass current user name in caml query - JavaScript

How can we pass current user login name in caml query where condition? I want to get only the list items pertaining to logged in user. For this I need to pass loginName of current user in caml query. Please help. I have a function to get…
user1841395
  • 29
  • 1
  • 1
  • 6
0
votes
1 answer

Function String Caml light

I need a function that take a string and a char , it slides the string and if it found the char return TRUE else FALSE. This is my start point: let rec check s a = match s with "" -> false | x::xs -> if x = a then true else check xs a ;; I…
0
votes
2 answers

Listing Nintex Workflow Tasks across a site collection

I am working on a SharePoint web part that would approve selected Nintex Workflow Tasks. It would be simple form listing Nintex Workflow Tasks (check-boxes for the ones that need to be approved). Does anyone have an example how to get Nintex…
Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
0
votes
1 answer

Query to get files URL from sharepoint

Is it possible to get a perticular file from sharepoint instead of getting all files at onlce? In below query when I queryNode is empty I am getting all the files but when queryNode is commented query I am not getting any file. What is missing…
PawanS
  • 7,033
  • 14
  • 43
  • 71
0
votes
1 answer

sharepoint caml query isn't working when querying by FileLeafRef

I want to retrieve a specific item from a list named "Pages" in a specific sharepoint site. I want the query to only return the specific item associated with the FileLeafRef that I'm querying. I've constructed a CAML query that I've tested out…
Jason
  • 174
  • 3
  • 18
0
votes
1 answer

Get editable sharepoint list items

I want to get all the items of SharePoint list, but not the default columns data. Basically, I want all the editable SharePoint list items that are displayed to user. How can i do that using CAML Query and C#?
Yogesh
  • 3,394
  • 9
  • 31
  • 46