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

CAML Query find records where parameter does not exist?

I have a sharepoint list which has several fields. It seems that when a field is left blank on one of the records - that attribute is missing on the field when I query the list using a CAML Query. Is it possible to write a query to return the…
Khan
  • 17,904
  • 5
  • 47
  • 59
0
votes
2 answers

CAML query to locate specific SPFolder nested in document library tree

It seems like searching with CAML and SPQuery doesn't work properly against custom metadata, when searching for SPFolders instead of files, or when searching for custom content types. I've been using U2U to test a variety of queries, and just not…
David Hill
  • 4,102
  • 2
  • 23
  • 19
0
votes
1 answer

CAML Query builder not working for And/Or combination in SharePoint 2010

I am using CAML builder in SharePoint 2010 visual web part. But it is not working for And/Or combination. Ex: I need to get the records from list based on Status=published or (Status=Draft and createdBy=currently logged in user) and…
0
votes
2 answers

Insert a WHERE clause in a CAML query - using SharePoint, SPServices, JavaScript, and jQuery

I am trying to insert a WHERE clause into my CAML query to filter a date column for NULL (I want to return all rows for which there is no date in Assign Date the column). This is for a SharePoint List. The code is using the SPServices, jQuery, and…
WCS
  • 93
  • 1
  • 3
  • 17
0
votes
1 answer

CAML Query to retrieve list items Retrieves more data than expected

I'm attempting to learn the basics of CAML queries in SharePoint. For various non-technical reasons, I'm presently limited to using VBSCRIPT to send my requests to the site I wish to query. I am able to connect to the site and retrieve data, but all…
BIll
  • 51
  • 1
  • 1
  • 10
0
votes
1 answer

Generating a hyperlink from variables or other method (using JavaScript, jQuery, and CAML for a SharePoint List)

This is a question on how to get a hyperlink into a SharePoint table where the hyperlink has to be generated from variables containing certain parts of the link (unless there is a different or better way). My apologies if I am asking my question in…
WCS
  • 93
  • 1
  • 3
  • 17
0
votes
1 answer

How to add a default value to a list when coding a sharepoint hosted app

How to add a default value to a list field when coding in sharepoint? Here are all the possible fields: http://msdn.microsoft.com/en-us/library/ms437580.aspx DefaultValue is not in this list. This is my code:
Nick N.
  • 12,902
  • 7
  • 57
  • 75
0
votes
1 answer

How to get display name from created by field in sharepoint client object model?

In my sharepoint javascript code, I am retrieving items from a list. I used a camel query to download specific fields. One of the fields was created by (person who created the item). When I loop through the items, I get the value of the created by…
omega
  • 40,311
  • 81
  • 251
  • 474
0
votes
1 answer

How to filter list using CAML query from a custom search field?

Background I'm configuring a custom WSS application that focuses around one main list. I want to replace the top sharepoint search box with my custom search. After clicking on search I want to load a page with a webpart presenting the results…
kyrisu
  • 4,541
  • 10
  • 43
  • 66
0
votes
1 answer

WSS GetListItems Not Returning Folders without Inherited Permissions when Calling with GUID

WSS 3.0 List Service I am running GetListItems() on a Picture Library (name Pictures) using the follow CAML query:
Mark
  • 368
  • 1
  • 9
0
votes
1 answer

CAML query - How to compare Lookup Value of DateTime

I need a CAML query to compare the Lookup Value and not ID. My Lookup Value is of DateTime. The startTime and endTime are both DateTime. Something is wrong with the code below. I searched through the web but all I can find are Type=DateTime and…
Joe
  • 151
  • 9
0
votes
3 answers

SharePoint CAML search on Modified By

What do I use in the value to return results using the following CAML query in MOSS2007? The query is currently not returning any results. I have tried using the Account Name and the name displayed in the list but to now avail.
Dan Ryan
  • 624
  • 7
  • 24
0
votes
1 answer

Using CAML to Update "Person or Group" field in SharePoint

My CAML query not work if it contain any "Person or Group" fields. Here is my CAML: fff
Raymond
  • 175
  • 1
  • 1
  • 11
0
votes
0 answers

How I can change the variable in this for loop

I've a problem with a loop for. In this program, let f s = for i = 0 to ((String.length s) - 1) do print_char s.[i]; done;; For some reasons, I want to change the variable i (increase,dicrease) but this variable is not mutable and I…
afk
  • 563
  • 2
  • 5
  • 12
0
votes
2 answers

caml query to get most popular documents on sharepoint 2013?

i want to get back all the documents over a site collection that have the biggest number of likes ? How can I do this writing a caml query? That's what i have tried so far: SPQuery query = newSPQuery(); Query.query = @ "
sara
  • 215
  • 1
  • 2
  • 8