GetListItems CAML query using Lookup fields

Hi,
I am struggling to find the correct CAML query syntax to use for GetListItems where I need to return an item ID based on a query involving both a lookup field (lookup is to a column within the same list) and a text field.
For Example (but changing one of the below to a lookup field):-
<soap:Body>
    <m:GetListItems>
      <m:listName>ListName</m:listName>
      <m:query>
<Query>
  <Where>
    <And>
      <Eq>
        <FieldRef Name="LevelOne" />
        <Value Type="Text">"test1"</Value>
      </Eq>
      <Eq>
        <FieldRef Name="LevelTwo' />
        <Value Type="Text">"test2"</Value>
      </Eq>
    </And>
  </Where>
</Query>
</m:query>
<m:viewFields>
<FieldRef Name ="ID" />
</ViewFields>
</m:viewFields>
</m:GetListItems>
</soap:Body>
Any help appreciated!

When you query a lookup column, you can choose to either query by text value or by lookup ID number (that is, the ID of the item being looked up).
Here are examples of both:
<FieldRef Name="MyLookupColumn" />
<Value Type="Lookup">Thriggle</Value>
<FieldRef Name="MyLookupColumn" LookupId="TRUE" />
<Value Type="Lookup">100</Value>

Similar Messages

  • Caml query using managed metadata column

    hi,
     I am having a console appln, where i want  to pass the one paramater in the form of siteCol1:subsite1:subsite2  where  siteCol1:subsite1:subsite2 is the path of subsite which is in MMS.
    Can i pass this string paramter to the splist which contains a taxonomy column   and match this paramter in the listitemcollection and fetch only those recordw which matches this crirteria.
    and it should fetch the values which matches in a splist. the caml query it expects contains the taxonomy -managed metadata column - , but i am stuck with
    SPList splistLIST = parenttWeb.Lists.TryGetList("LIST1");
                          if ((splistLIST.Items.Count > 0 && splistLIST!= null))
                              SPQuery   objnodeQuery = new SPQuery();
                              objnodeQuery.Query =
                                  string.Format(
           "<OrderBy>" +
              "<FieldRef Name='ID' />" +
           "</OrderBy>" +
           "<Where>" +
              "<Eq>" +
                 "<FieldRef Name='myTaxonomy' />" +
                 "<Value Type='Text'>{0}</Value>" +
              "</Eq>" +
           "</Where>", _mcurrentPathTermSet);
                              SPListItemCollection nodeItemCollection = splistLIST1.GetItems(objnodeQuery);
    am not able to retrieve the listitems which passes this as a parameter and retrieve those records where it matches this taxonomy column.
    my doubt is, how to pass a string parameter to the splist contains taxonomy column and fetch those records

    Hi,
    Managed metada column does not supported in lookup column as the thread below:
    https://social.technet.microsoft.com/Forums/en-US/0dee5ba4-9648-445f-a774-8c59cf01b81c/confirmation-needed-cant-lookup-managed-metadata-field-with-lookup-column?forum=sharepointgeneralprevious
    If you prefer managed metadata in Search, then I'd suggest you find workaround to use managed metadata column in lookup column. You could use a workflow to copy the managed metadata column to a text field, make the text field to be hidded from the list if
    necessary. Then lookup this text field in other list.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • CAML Query Using CSOM in PowerShell

    Hi,
    I am trying to retrieve list items based on certain conditions using CAML query. I am using CAML query in Powershell using CSOM.​ The issue is no matter what condition i provide, it returns all list items. Any help would be highly appreciated. The script is: 
    # Location of DLL's
    $loc ="C:\SharePoint\ClientDLL"
    Write-Host "Date Range"
    Set-Location $loc
    Add-Type -Path (Resolve-Path Microsoft.SharePoint.Client.dll)
    Add-Type -Path (Resolve-Path Microsoft.SharePoint.Client.Runtime.dll)
    #Write the path of SharePoint Portal within double braces
    $siteUrl = ""
    #Login ID
    $loginname = ""
    #$listname=""
    Write-Host "Please enter password for $($siteUrl):"
    $pwd = Read-Host -AsSecureString
    $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl)
    $ctx.Credentials = New-Object System.Net.NetworkCredential($loginname, $pwd)
    $web = $ctx.Web
    $list=$Web.Lists.GetByTitle($listname)
    $count = $list.ItemCount
    Write-Host $count
    $newline = [environment]::newline
    $($list.Title)
    Write-Host -NoNewline "Deleting list items from : $($listname)" -foregroundcolor black -backgroundcolor yellow
    #$caml="<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>achint</Value></Eq></Where></Query></View>"
    $caml="<View><Query><Where><Eq><FieldRef Name='Created'/><Value Type='DateTime' IncludeTimeValue='FALSE'>11/9/2014</Value></Eq></Where></Query></View>"
    $cquery = New-Object Microsoft.SharePoint.Client.CamlQuery
    $cquery.ViewXml=$caml    
    $listItems = $list.GetItems($cquery)
    $ctx.Load($listItems)
    $ctx.ExecuteQuery()
    $newline
    Write-Host  $listItems.Count
    if ($listItems.Count -gt 0)
            #$listItems | % {$list.GetItemById($_.Id).DeleteObject()}        
            #$ctx.ExecuteQuery()
            Write-Host "All list items deleted from List." -foregroundcolor black -backgroundcolor green
    else
            Write-Host "No Item in list: $($listname) to delete" -foregroundcolor black -backgroundcolor red
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    HI?
    TRY to use query like this :
    $query = "<query>
    <where>
    <eq>
    <FieldRef Name="ID"
    <Value Type="Number">$IDNum</value>
    </eq>
    </where>
    </query>"

  • Using lookup field inside dimension + data base.

    Good morning,
    I'm trying to create drill down for my report with the follow caracteristics.
    - Regions DataObject and this contains fields from an external data source.
    - Exams DataObject and this contains lookup fields which uses fields from Regions.
    - Exams DataObject contains a dimension and this one has a hierachy that uses my lookup fields.
    When I access my report I try to do a drill down. But an exception occurs saying that field doesn't exists.
    This concept that I've tried to create is correct ? If yes , what I'm doing wrong ?
    Thanks

    Hi Harold,
    Here's a workaround that could turn into a solution.
    Make sure that you're working on a COPY of the database, as there is potential for an error to cause loss of data. The easiest way to create a copy is to do a Save as... and make a small change to the DB name. The newly named version will be the active version, preserving the "old" version from inadvertent changes.
    In the "new" version:
    Go Layout > Define Fields...
    Define a new Calculation type field with the formula 'fieldname' , using the name of the recalcitrant field where I've used fieldname. Set the Display as button to Text (if appropriate).
    Click OK, then Done. (This step is necessary to force the calculation of values for this field,)
    Go Layout > Define fields... (again)
    Click on the "new" field to select it.
    Change its Type to Text (or to whatever type the "old" field was).
    Click Modify, then Done.
    Remove the "old" field from each layout where it appears, and replace it with the "new" field. Set the format in Layout for each occurence of the field.
    Return to Browse, and Print a test page to check the results.
    Regards,
    Barry

  • Issue in CAML query involving lookup column

    am having the below scenario:
    splistmaster1 --> contains custname [single line of text] 
    splist2 --> contains custnamelukup [ lookup data type] , custid- -[single line of text]
    now i need to filter the records  from splist2, with  custname as the parameter from the splistmaster1 .
    //master list item of custname is passed as a parameter
    _mycustname = singleitemfrommaster["custname"].tostring();
    oQuery.Query =
                                          string.Format(
                                      "<OrderBy>" +
                                         "<FieldRef Name='ID' />"
    +
                                       "</OrderBy>" +
                                       "<Where>" +
                                        "<And>" +
                                          "<Eq>" +
                                             "<FieldRef
    Name='custid' />" +
                                             "<Value
    Type='Text'>{0}</Value>" +
                                          "</Eq>" +
                                          "<Eq>" +
                                             "<FieldRef
    Name='custnamelukup' />" +
                                             "<Value
    Type='Text'>{1}</Value>" +
                                          "</Eq>" +
                                         "</And>" +
                                       "</Where>",mycustid, _mycustname);
                                        SPListItemCollection splistItemA = null;
                                        splistItemA = splistA.GetItems(oQuery);
    due to some reason  the query is not returning the results.
    can anyone help me where i am wrong. because i want to filter  records with the combination of custname and custid from splist2 .
    Das

    SPSite oSite = SPContext.Current.Site;
    SPWeb web = oSite.RootWeb;
    SPQuery query = new SPQuery();
    query.Joins = "<Join Type='INNER' ListAlias='Region'>" +
    "<Eq>" +
    "<FieldRef Name='Region' RefType='Id'/>" +
    "<FieldRef List='Region' Name='ID'/>" +
    "</Eq>" +
    "</Join>";
    query.ProjectedFields =
    "<Field Name='RegionTitle' Type='Lookup' " +
    "List='Region' ShowField='Title'/>";
    // "<Field Name='DSELastName' Type='Lookup' " +
    // "List='DSE' ShowField='Title'/>";
    query.ViewFields = "<FieldRef Name='Title'/>" +
    "<FieldRef Name='RegionTitle'/>";
    //"<FieldRef Name='DSELastName'/>";
    SPList customerList = web.Lists["Country"];
    SPListItemCollection items = customerList.GetItems(query);
    List<Ownvalues> o = new List<Ownvalues>();
    foreach (SPListItem item in items)
    SPFieldLookupValue RegionTitle =
    new SPFieldLookupValue(item["RegionTitle"].ToString());
    // o.Add(item.Title, RegionTitle.LookupValue);
    Ownvalues val = new Ownvalues();
    val.Title = item.Title;
    val.RegionTitle = RegionTitle.LookupValue;
    o.Add(val);
    Check out if the code above helps
    Girish

  • Fetch Data through Caml Query using textboxes as parameters

    Hi All,
           *I am very new to SharePoint and working on SharePoint dev.I have task to get the list items based on 2 conditions and I am passing parameters as texboxes to get the data dynamically .
         *I had written the below code(Code 1) for which it is showing me errors and Code2 is working fine.Can any one help me what is error
    Code 1
      SPList mylist = myweb.Lists["Manager"];
                    SPItem myitem = mylist.Items.Add();
                    SPQuery myquery = new SPQuery();
                    string idvalue = txtid.Text.ToString();
                    //myquery.Query = @"<Where><Eq><FieldRef Name='ID'/><Value Type='Number'>"+txtid.Text.ToString()+"</Value> </Eq></Where>";
                    string idvaluuue=txtid.Text.ToString();;
                    myquery.Query = @"<Where>
                  <And>
                      <Eq>
                         <FieldRef Name='ID'/>
                         <Value Type='Number'>"+idvaluue+"</Value>
                      </Eq>
                       <Eq>
                         <FieldRef Name='NumberOfEvents'/>
                         <Value Type='Text'>"+drbcalenders.SelectedItem.Text.ToString()+"</Value>
                       </Eq>
                   </And>
                  </Where>";
    Code 2
    SPList mylist = myweb.Lists["sample"];
                    SPItem myitem = mylist.Items.Add();
                    SPQuery myquery = new SPQuery();
                    string idvalue = txtid.Text.ToString();
                    //myquery.Query = @"<Where><Eq><FieldRef Name='ID'/><Value Type='Number'>"+txtid.Text.ToString()+"</Value> </Eq></Where>";
                    string idvaluuue=txtid.Text.ToString();;
                    myquery.Query = @"<Where>
                  <And>
                      <Eq>
                         <FieldRef Name='ID'/>
                         <Value Type='Number'>9</Value>
                      </Eq>
                       <Eq>
                         <FieldRef Name='NumberOfEvents'/>
                         <Value Type='Text'>July</Value>
                       </Eq>
                   </And>
                  </Where>";
    Samar

    below is query with multiple AND usage...I hope it will help you out...
    string four = "4";
    string five = "5";
    string fifty = "50";
    myQuery.Query = @"<Where>
    <And>
    <And>
    <Eq>
    <FieldRef Name='PCurrency' />
    <Value Type='Currency'>"+fifty+@"</Value>
    </Eq>
    <Eq>
    <FieldRef Name='PNumber' />
    <Value Type='Number'>"+four+@"</Value>
    </Eq>
    </And>
    <Eq>
    <FieldRef Name='ID' />
    <Value Type='Counter'>"+five+@"</Value>
    </Eq>
    </And>
    </Where>";
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote ***

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • Join two list with condition using caml query in SharePoint 2013 with client object model

    Hi,
    Want to join two list to get all fields from both list.
    Am new to sharepoint and sharepoint 2013. Am working in sharepoint 2013 online apps. Am using context.executeQueryasync to load list and get items from list. Am able to get items from single list with caml query, but not able to get both list field values
    with joins.  I did lot of surfing..but not..
    Below is my code..
    ListName1 : "AssignedTasks"
    ListName2 : "Tasks"
     var assignedQueryTest = "<View><Joins><Join Type='INNER' ListAlias='Tasks'><Eq><FieldRef Name='TaskId' RefType='Id'/><FieldRef List='Tasks' Name='ID' /></Eq></Join></Joins>"
                    + "<ViewFields><FieldRef Name='TitleValue' /><FieldRef Name='ActionItemsValue' /></ViewFields>"
                    + "<ProjectedFields>"
                    + "<Field Name='TitleValue' Type='Lookup' List='Tasks' ShowField='Title' /><Field Name='ActionItemsValue' Type='Lookup' List='Tasks' ShowField='ActionItems' />"
                    + "</ProjectedFields>"
                    + "</View>";
                   var web = context.get_web();
                    var list = web.get_lists().getByTitle("AssingedTasks");
                    var myQuery = new SP.CamlQuery();
                    myQuery.set_viewXml(assignedQueryTest);
                    var myItems = list.getItems(myQuery, "Include(TitleValue,ActionItemsValue)");
                    context.load(myItems);
                    context.executeQueryAsync(function () { if(myItems.get_count()>0){....}
    }, errorCallback);
    Here am able to get "AssignedTasks" list field values but not able to get "Tasks" list field values. 
    Can you please help me to resolve the issue. Or new idea for join. I have add the condition also in the query.
    If anybody have good sample, please provide.
    Thanks,
    Pariventhan
    Pariventhan.S

    Hi Pariventhan,
    I don't know about join but I have a workaround of this problem.
    Declare one variable (itemcollection) globally. Load all the items "AssignedTasks" using context.load.
    In the success method call another CAML query using <IN> tag of the ID of the items from the second list (Assuming you have look-up column of the ID of the first list to the second list).
    If this is not clear to you then please let me know. If possible then I can provide code sample.
    Thanks,
    Aniruddha

  • Caml Query.

    I have generated a caml query using caml bulider.
    but when i use the same query in my code its is not working and when  i test it in caml query builder tool it worked fine.
    Can anyone help me on this...
    Below is the caml query:
    <Query>
       <Where>
          <And>
             <Eq>
                <FieldRef Name="Status" />
                <Value Type="Text">Passed</Value>
             </Eq>
             <Eq>
                <FieldRef Name="Created" />
                <Value Type="DateTime">[Today-1Day(s)]</Value>
             </Eq>
          </And>
       </Where>
    </Query>

    Are you getting an error or just different results than you expect? I will say that I generally nest my queries a little differently, for instance in your case I would do:
    <Where>
    <And>
    <Eq><FieldRef Name='Created' /><Value Type='DateTime'><Today OffsetDays='-1'/></Value></Eq>
    <Or>
    <Eq><FieldRef Name='xyz' /><Value Type='Lookup'>Passed</Value></Eq>
    <Eq><FieldRef Name='xyz' /><Value Type='Lookup'>Failed</Value></Eq>
    </Or>
    </And>
    </Where>
    Danny Jessee
    MCPD - SharePoint Developer 2010
    MCTS - SharePoint 2010, Configuring
    dannyjessee.com/blog

  • I want to write a CAML query on Id based on Ascending and Descending.

    Hi,
    i want to write a CAML query on Id based on Ascending and Descending.
    Can i write CAML query using both Ascending and Descending?
    Actually my requirement is if i changed the id, Ascending and Descending will perform based on this id.

    Hi,
    Do you want to retrieve a set of items which are sorted based on the value of the ID column using CAML query statement?
    If this is the case, you can compose and test the CAML query statement with the help of
    CAML Designer which with a Graphic User Interface provided:
    http://karinebosch.wordpress.com/my-articles/caml-designer-for-sharepoint-2013/
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Join two list of integer type field using CAML query

    Hi
    As i am struggling in Join two sharepoint list (Roles and Emplyees). As there is no lookup columns and lists are already existing and have almost 3000 + recodrs. As a part of enhancement work need to join these list. List structure is some thing as follows: 
    Roles :
    ID                              Title
    1                               Project Manager
    2                               Business Analyst
    3                              Developer
    Employees :
    Name                       Role
    1 James                  1
    2 Petar                    3
    3 John                     2
    Output should be like as follows:
    Name                       Role
    1 James                  Project Manager
    2 Petar                    Developer
    3 John                     Developer
    So please suggest, if the joining can be done other than lookup columns through the CAML query.
    Akhilesh Rao

    Follow below CAML query to add joins between two lists.
    SPList list = SPContext.Current.Site.RootWeb.Lists["Employees"];
    SPQuery query = new SPQuery();
    query.Joins = @" <Join Type="INNER" ListAlias="Roles">
    <Eq>
    <FieldRef Name="Employees" RefType="Role" />
    <FieldRef List="Roles" Name="ID" />
    </Eq>
    </Join>";
    query.ProjectedFields = @" <Field Name="RoleName" Type="Lookup" List="Roles" ShowField="Title">";
    query.ViewFields = @ "<FieldRef Name="Title">
    <FieldRef Name="RoleName"> ";
    SPListItemCollection result = tablea.GetItems(query);
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • How to Filter Lookup Field Values by Current User in Caml Query

    sharadpatil

    Hi,
    If you want to use JavaScript, we can use SPServices to achieve it.
    /* Get Current username */
    var userName = $().SPServices.SPGetCurrentUser({ fieldName: "Title" });
    /* Get Sites assigned to current user */
    var query = "<Query><Where><contains><FieldRef Name='UserName' /><Value Type='User'>" +
    userName + "</Value></contains></Where></Query>";
    More information is here:
    SharePoint – Filter Lookup Field Values by Current User
    http://ljayaprakash.wordpress.com/2012/06/01/filter-lookup-field-values-by-current-user/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Retrieve All records and display in Report using CAML query in Report Builder if Parameter value is blank

    Hello Experts,
    i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
    by using Following method
    Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
    Here is my existing CAML query.
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>Employees</ListName>
      <ViewFields>
        <FieldRef Name="Title" />
        <FieldRef Name="FirstName" />
        <FieldRef Name="LastName" />
        <FieldRef Name="FullName" />
        <FieldRef Name="UserName" />
        <FieldRef Name="Company" />
      </ViewFields>
      <Query>
        <Where>  
    <Eq> 
        <FieldRef Name="Title" />
      <Value Type="Text">    
       <Parameter Name="EmployeeId"/>    
    </Value>
    </Eq>                  
        </Where>
      </Query>
    </RSSharePointList>
    The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
    Please suggest
    Thank you
    saroj
    saroj

    Your problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
    provides some examples,
    http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
    Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Lookup Field with a Lookup Query on Process Form in OIM 11gR2

    Does anyone know how to render a field on a process form so that when modifying the field for the resource a "Search and Select" window appears and allows the user to search for the value based on the lookup query defined for the field in Design Console? The lookup field has been defined as a lookup query through Design Console and tested by previewing the form in DC. When creating the Form through OIM System Administration the field is created as a Text Field, not a Lookup. Creating a new Field through OIM System Administration only allows you to create the field using a lookup code not using a lookup query. I've tried to remove / add the field in the UI (create sandbox, customize, etc.) and add it back as a Input LOV but it doesn't get added and the error in the logs say java.lang.RuntimeException: Input LOV is not supported for this attribute, please make this attribute searchable in order to drop this as an input LOV. The field is defined as searchable in the Form Designer in OIM System Administration. In fact I can't even add it back as an ADF Input Text Field w/ Label, I suspect I'll have to "Regenerate" the form to even get it back on the form. Any help is appreciated. Next step is to try to export the sandbox, massage and import.
    Thanks,
    Ryan

    Finally got an answer out of Oracle after trying to figure this out as well. Apparently Lookup Queries are not supported at all by the R2 Web UI. They indicate that according to product management this will not be fixed.

  • Using CAML Query in SharePoint Hosted app

    Hi,
    I am trying to execute a CAML Query in a SharePoint Hosted App, below is the JS code.
        executor.executeAsync({
            url: appwebUrl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('Documents')/Items?/getitems?@target='" + hostweburl + "'",
            method: "POST",
        body: { 'query' : {'__metadata': { 'type': 'SP.CamlQuery' }, "ViewXml": "<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='TEXT'>value</Value></Eq></Where></Query></View>"
        headers: {
            "accept": "application/json; odata=verbose",
            "content-type": "application/json; odata=verbose"
        success: successHandler,
        error: errorHandler
    getting an error: Uncaught Error: "Invalid field or parameter requestInfo.body"

    Are you using rest api?
    Please check this
    http://tech.bool.se/using-caml-sharepoint-rest-api/
    http://msdn.microsoft.com/en-us/library/office/dn531433(v=office.15).aspx

Maybe you are looking for

  • When I open Firefox I get a message that says I am working offline. I have tried reinstalling, but no help. Other acounts on this computer can get to Firefox, but not me. What's wrong?

    I upgraded to the newest version of Firefox yesterday. But now I cannot get online with Firefox. I can check my e-mail and browse the web on Internet Explorer, but not Firefox. I get a message that says Firefox is working offline. I uninstalled and r

  • ICC profiles needed

    Hi, I give up. I want to follow this procedure as found on the HP website: HP Printers -  Using ICC Profiles for Color Photos in Adobe Photoshop. However, after two days of searching I have been unable to locate the HP ICC profiles for my printer, pa

  • Converting NEF files to DNG

    I have recently purchased the Nikon D800.  I am having a difficult time converting the RAW NEF files to DNG so I can view them in Photoshop Elements 6 and Photoshop CS6.   I do not understand why Nikon would make it so difficult to upload into Photos

  • The saga of the hanging eMac Please help

    I'm working on this long distance, so I have to be long winded. I recently sold an emac 1 ghz with 1 gig ram, 80 gig hdd and a new install of Tiger on that drive. I had been running it with Tiger on an external drive and 10.2.8 on the 80. Before it w

  • Can't get into my windows vista!

    I just got a windows vista from one of my family members and they don't remember the password to their account profile. Like when you turn it on and it goes the different profiles? Well there are two and you can't get on with out those passwords. Soo