Collaborative Application Markup Language (CAML) is an XML-based language that is used in Microsoft SharePoint Foundation to define the fields and views that are used in sites and lists.

learn more… | top users | synonyms

0
votes
1answer
1k views

Get all files under subfolder in Shared Documents list - SP Object Model

I am trying to get all files in a subfolder, in the Document Library "Shared Documents" in SP 2010. So the structure looks like http://sp2010site/sitename/shared documents/folder1/ ...
0
votes
1answer
48 views

CAML is ordering by content type even though not specified

I have a library in SharePoint 2010. The library has folders, each item in the library, including the folder, are tagged with a number (separate column). When I do an 'OrderBy' the column, the ...
1
vote
1answer
185 views

Lient Object & CAML -> Getting Items of a specific view

I need some support as I am struggeling to understand what is wrong with my code. I try to retrieve the data of a specific view. THe line "camlQuery.ViewXml = view.ViewQuery;" throws an exception "The ...
0
votes
3answers
600 views

Using a CAML query how to get a subfolders items based on the URL value the folder

If you right click on a sub folder in a library and select Copy Shortcut. How do you parse or use the Copy Shortcut value to CAML query the a single folder and its sub folders? Copy Shortcut value: ...
1
vote
1answer
61 views

Alert Template - CAML value manipulation

I'm modifying the alert template for when an task item is assigned. This section here <HTML> <![CDATA[<td class="toolbarbutton"><a href="]]> </HTML> <GetVar ...
1
vote
1answer
120 views

Threshold limit reached with a calendar month view

I'm perfectly aware about the threshold thing. I know I need to reduce my query. However, here, it's for a calendar... I use the below query: <query> <Query> <Where> ...
1
vote
0answers
53 views

CAML Query scheme in depth

I have a plan to develop my own version of the CAML builder app - as a pet project and in order to improve this field. :) It would be nice to support all the capabilities of the CAML query scheme ...
0
votes
1answer
401 views

CAML Query filter by month

I would like to use CAML Query to select records between a certain period (a particular month) and which where made by a certain user. Here's what it look like but it doesn't work ...
0
votes
0answers
34 views

Combining multiple field references in OrderBy when implementing paging

I'm having some issues combining multiple fieldrefs in an orderby and paging by ListItemCollectionPosition. I may have an orderby query looking like this <OrderBy> <FieldRef ...
0
votes
1answer
371 views

Lists with null columns not returned when retrieving custom lists with Caml query and Javascript

I am retrieving a list with caml query and Javascript. Everything works fine besides the fact that I have an image column and not all lists have that column populated: Here is a sample query I am ...
0
votes
1answer
593 views

Iterate through List items in a view and manipulate column data using JavaScript

The short story is I want to open a custom filtered view created by the standard SP UI and click a button that will iterate through all the items in the view and change the status field to complete. ...
1
vote
1answer
501 views

XsltListViewWebPart build query using variable

is possibility send a variable from ParameterBinding to query in XsltListViewWebPart? <Query> <Where> <Eq> <FieldRef Name="FileDirRef"/> <Value ...
1
vote
5answers
444 views

Translating a SQL query to CAML query

I am new to CAML query and as much as I have expected it to be simple like SQL I have found it quite frustrating to deal with. I have a simple query SQL query I am trying to translate into CAML but do ...
1
vote
2answers
235 views

How do I fetch the data from list present in root web of the root site collection?

We need to populate some data on an application page. The application page is present in the layouts folder and hence is accessible via the respective site URL. There are multiple site collections. ...
1
vote
1answer
327 views

CAML Query based on IDs to get version number?

With JavaScript, is it possible to get its version number if I know the ID of an item? I have a function that needs to do something with the selected file, but even if I select the file, it is ...
0
votes
0answers
58 views

Modifying CAML to filter by passed parameter

I have a list which contains a column called "Actual Start Date". I want to filter this list at the users command to only select the date they have selected. I have created a parameter called "Start" ...
0
votes
1answer
218 views

Field types are not installed properly while quierying a List

I have this problem: I want to query a list using Caml. Here is the query: <Where> <And> <Geq> <FieldRef ...
1
vote
2answers
638 views

How to display current month items only from SharePoint list with caml query

how to display current month items from SharePoint list with query.
0
votes
1answer
853 views

Expanding ListViewByQuery Web Part stuck on “Working on it…”

I am using a ListViewByQuery in a custom web-part. If I set the CAML GroupBy to <GroupBy Collapse='FALSE'> (i.e. expanded), the webpart works fine. However, if I set it to <GroupBy ...
2
votes
1answer
651 views

Create Multiple List Items with One Function

Is it possible to create multiple list items with one function in JavaScript / ECMAScript? I know that a single item can be created with the code below, but would like to know if it is possible to ...
6
votes
1answer
611 views

SQL Injections with SharePoint 2010 CAML Queries

IBM Appscan has detected that some pages in our system are vulnerable to SQL Injection. The report shows which URLs are vulnerable, so I checked the pages based on the URLs, but most of the pages ...
0
votes
1answer
292 views

Get last item by caml in an ItemAdding event receiver?

I have a custom list in sp2013. On this list I have created in vs a eventreceiver on ItemAdding. In this event receiver I would like to get the last item from the list and get some value of a field ...
0
votes
2answers
69 views

CAML : filter items based on FieldType regardless of the Column name

In a CAML query, can you filter items which has values in the column (Not Null), based on the FieldType of the column. regardless of the Column name ?
2
votes
2answers
3k views

CAML query to filter items by Content Type, independent of column name

In a SharePoint list I have a column, created using a custom content type. Let's say, the content types is "MyContentType". I used in a column "My Custom Column". Need to filter out items if the "My ...
0
votes
1answer
94 views

LINQ in SharePoint to order listitems

I have tried the following in CAML but it does not seem to be returning them sorted SPQuery query = new SPQuery(); query.Query = "<Query><OrderBy><FieldRef Name='Sequence ...
2
votes
1answer
59 views

creating CAML queries in a 32 bit environment?

I'm currently developing with SharePoint on my 32 bit computer. While I'm able to make simple changes with designer on my PC I'm aware that using visual studio to make changes (CAML queries) without ...
1
vote
1answer
148 views

CAML RenderPattern Get current list Item ID

In a my share point 2007 list i have a custom field. In the custom field i need to get the current Item ID. Later have to pass this to a JavaScript. How to get the current Item ID in RenderPattern ? ...
1
vote
0answers
104 views

Custom Field RenderPattern Customization - SharePoint 2007

I'm creating a custom field in SP 2007. I need to Get the Custom field value and field properties on Item click, in the list item display view. Also i Need to pass these values to a JavaScript. So, ...
1
vote
1answer
43 views

About CAML and its content

Problem: I have understood the foundation of CAML and there are some questions that are still unclear in my mind. What context and when should a SP developer use CAML? Why using CAML to retrieve ...
3
votes
2answers
598 views

CAML query for sharepoint list not working

I have a CAML query where I am getting records between a date range for a sharepoint 2010 list through an asmx web method call. It looks like this ...
0
votes
0answers
136 views

Get Items Lookup Mult timeout

I have a list with many records , and when I'm doing a filter for a column that is Lookup Multiple runs smoothly : Example <Where> <Eq> <FieldRef Name='Column' ...
2
votes
2answers
73 views

Items not showing in folder?

Basically, I have a situation where instead of creating 10 individual document libraries, I've created one and filter each "region" as such by subfolders in the library. Canada Finance > Document ...
0
votes
1answer
91 views

How to get list items same values in each two list items to display in 3rd list using with caml query

How can I write one caml query to get items from two lists joined on empid? will you please anybody give me help with suitable caml query or even otherwise possible code. Note: There is no lookup ...
0
votes
1answer
165 views

Why is my CAML query for my list view not valid: filtering a date and membership of created by

The below query works only for each segement alone. Either: <And> <Geq> <FieldRef Name="Von"/> <Value Type="DateTime">{startdatum}</Value> </Geq> <Leq> ...
0
votes
0answers
61 views

Get SPListItem by title is very slow

I want to get a SPListItem by title. I´m using a caml query to filter the list (Around 1000 items). There is only 1 item with the title in the list. My problem is now that the performance is really ...
0
votes
2answers
1k views

CAML query order by not working in SPList

I am using the following code display items in list but it is not sorting them. No matter what I write in order by clause, it always brings the same results. SPListItemCollection items = null; using ...
3
votes
1answer
4k views

CAML query limitation of values in IN operator

I have less than 5000 items in my library. I want to get 530 items by ids. So I am using following query. <Where> <In> <FieldRef Name="ID" /> <Values> ...
3
votes
1answer
308 views

Expand recurring events for the next 2 years

How can I get an expanded list of recurring events for the next 2 years? I am currently using this CAML expression: <DateRangesOverlap> <FieldRef Name="EventDate" /> <FieldRef ...
0
votes
3answers
2k views

How to get list of documents checked out by me in view?

I have created a document library definition in which I want to insert a view that shows all documents which are checked out by me. The declarative code is: <View BaseViewID="140" Type="HTML" ...
1
vote
1answer
546 views

CAML Query - Does <IN> count as one or multiple lookups?

In a CAML Query I filter for multiple lookup fields by combining multiple <Or> statements. This caused a log entry like this: Some lookup fields were omitted from the query result because the ...
1
vote
1answer
483 views

Get values from one list where a value is present in another list

I have 2 lists with a parent child relationship. List A ID Title ---------------- 1 First 2 Second 3 Third List B ID Title List A Lookup ---------------------------- 1 ...
1
vote
2answers
409 views

CAML In clause - Value does not fall within the expected range

I get a 'Value does not fall within the expected range' error from the following CAML. <Query> <Where> <In> <FieldRef Name="ID"/> <Values> ...
0
votes
1answer
99 views

Why do my CAML queries always have excess characters like “#”, etc. in the values?

Whenever I do CAML queries for SharePoint list items I find that the return results always have strange characters in the value. For example, if I do a query against the filename (FileLeafRef) I will ...
1
vote
1answer
800 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
1
vote
2answers
282 views

How to retrieve the login of the user who checked-out a given file

I am currently developping a C# application which has to retrieve some data from a SharePoint website through a CAML request. I successfully get everything I need except one information : the login ...
1
vote
1answer
775 views

Sharepoint 2013 .NET CSOM CamlQuery Join

I am unable to create a working query with join in my .net csom application. I was using this article: http://msdn.microsoft.com/en-us/library/ff798388.aspx here is my code: ClientContext context ...
0
votes
1answer
466 views

CAML Join for retrieving FieldLeafRef

I'va a custom list which contains a lookup field to a document library. Now I need to retrieve all items from this list with the corresponding file name from the document library with Javascript CSOM. ...
2
votes
2answers
394 views

Nested REST or CAML code to list “NOT-IN” List Join Logic. Possible?

I'm thinking this is possible in SPO 2013? Two Custom Lists. Submitted and Universe (common field employee number) One qualifier condition that applies to both .. dept = Sales I need to list ...
1
vote
1answer
85 views

Generate Guid upon field creation in caml field definition

I'm trying to figure out a way to generate a new Guid upon field creation without using event handling. I.e something like this <?xml version="1.0" encoding="utf-8"?> <Elements ...
1
vote
0answers
482 views

SPSiteDataQuery for Documents using caml query

I am tring to query an entire site collection for all the documents where a certain field is equal to something. For example where LoanCategory = Insurance. I am trying to do this using an ...