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

ServerException was Unhandled

Getting this error: ServerException was Unhandled and when I fix my query I don't get the exact results when I filter it on SharePoint.
Alphard
  • 23
  • 7
0
votes
1 answer

Caml Query: How to add additional parameters?

I have a working query, I want to add additional parameters on the query, such as: RPCS
Alphard
  • 23
  • 7
0
votes
1 answer

Transform a string to char in caml

How I can convert the string "\n" to the character '\n' in caml. We don't have a function in caml (char_of_string) which allows some things like that. For strings like "a","b".. "z" it's easy we take the character number one but when we have…
afk
  • 563
  • 2
  • 5
  • 12
0
votes
2 answers

Can we query and fetch data from LIST between different subsites using CAML Query.?

Have LIST created under one site, can the same LIST be used to fetch data from other site using CAML Query.? eg: Consider a LIST "xxx" created under SitePages/AAA/Lists/ Can i access the LIST "xxx" from other site i.e SitePages/BBB/ To Summarize, Is…
KrankyCode
  • 441
  • 1
  • 8
  • 24
0
votes
1 answer

Sharepoint ListTemplate Multiple Content Types - Ref Fields

I am trying to create a list template in SharePoint Feature using CAML. I have two content types "News" and "News Release" they both share two fields called Overview and Description. I have been reading that the "listtemplate" caml element does not…
Elijah Glover
  • 1,968
  • 2
  • 14
  • 21
0
votes
1 answer

CAML Query not working properly

I'm trying following CAML Query but it's not working correctly instead of returning 2 documents it's returning all . Project1, test
Ris
  • 1,152
  • 7
  • 29
  • 63
0
votes
1 answer

Find list with specyfic Content type by ID

I need to find out how to get list from site/web if i have only content type ID, there is some about 500 + lists i dont want to "foreach" those like : using (SPSite _SiteCollection = SPContext.Current.Site) { using (SPWeb _web =…
Sebastian 506563
  • 6,980
  • 3
  • 31
  • 56
0
votes
1 answer

why GetSiteData(query) returns wrong values

I do a caml query on the forms libraries in entire site collection with SPWeb.GetSiteData(SPQuery). For the field "ServerUrl" it returns just "/" instead of "/site name/library name/formName.xml". With item["ServerUrl"] is returns the right value,…
Alexandr
0
votes
2 answers

Get Item based on index from Sharepoint CAML Query to SPListItemCollection

I am trying to query list items using caml (first time doing this) and sort the items based on modified date so I can get access to most recent documents. However when trying to get the SPListItem based on the ID I am failing. Code: SPQuery query =…
BlueBird
  • 1,406
  • 4
  • 24
  • 35
0
votes
1 answer

filtering in sharepoint caml

Below I have the view which i have in the list schema.The issue is that it never picks the where clause.It displays the order by clause correctly when I go to modify the view but not the where clause which should show up in the filter section.I also…
user505210
  • 1,362
  • 11
  • 28
  • 50
0
votes
1 answer

"Bump" a SharePoint ListItem without changing values

First of all, what I am using: SharePoint 2007 JavaScript CAML Query Standard webservice (_vti_bin/lists.asmx) I am selecting one or more items from a list, depending on some condition. I get the items, and perform another condition on them. If…
Abbas
  • 14,186
  • 6
  • 41
  • 72
0
votes
1 answer

javascript caml query returning all date values

I'm using a CAML query to get events between two specific dates from a calendar. However, when the query runs it is still returning all of the events with the list. It looks as if it is not applying the 'and' operator correctly. My code is:…
jonvines
  • 91
  • 6
0
votes
2 answers

Import Microsoft.Sharepoint namespace

Can anyone know, how can I import the Microsoft.Sharepoint dll to a console application? I want to test a CAML query result without deploying a sharepoint site. I added the dll to the app's references and of course the using directive too, but when…
Blackstar
  • 153
  • 1
  • 15
0
votes
1 answer

Sharepoint XML query from array

I have a list of x people I am searching for in a SharePoint 2010 list. How do I build the or statement in XML similar to the if statement if( person1 || person2 || person3 || ... personx) Since every has to have exactly 2 children, no more,…
0
votes
1 answer

Sharepoint caml update batch: how pass null value

When I need to update some values in the SharePoint list I create the caml-batch like this: 123 my…
igortche
  • 115
  • 1
  • 8