Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to retrieve data from share point list using CSOM. my share point version is 2013.

when I try to use the following query i got an exception-- <cannot complete="" this="" action.please="" try="" again.

please="" help="" me="" with="" this.tia

<b="">What I have tried:

This is the query i am using
camlQuery.ViewXml = @"<view><query><where><eq><fieldref name="Created">" + "<value type="DateTime" includetimevalue="FALSE"><today offsetdays="30"><rowlimit>100";
Posted
Updated 19-Apr-19 12:30pm

1 solution

It's malformed; you need proper ending tags; e.g.

CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml =
    @"<View>
       <Query>
         <Where>
           <Eq>
             <FieldRef Name='Category'/>
             <Value Type='Text'>Development</Value>
           </Eq>
         </Where>
       </Query>
       <RowLimit>100</RowLimit>
     </View>";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900