如何使用CAML查询从共享点列表中检索最近10天的数据 [英] How to retrieve last 10 days data from share point list using CAML query
问题描述
我正在尝试使用CSOM从共享点列表中检索数据。我的分享点版本是2013.
当我尝试使用以下查询时我得到了一个异常 - <无法完成=这个=动作。请=再次尝试=。
please =help =me =with =this.tia
< b =>我尝试了什么:
这是我正在使用的查询
camlQuery.ViewXml = @< view>< query>< where>< eq>< fieldref name =Created> +< value type =DateTimeincludetimevalue =FALSE>< today offsetdays =30>< rowlimit> 100;
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";
推荐答案
这是畸形的;你需要适当的结束标签;例如
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>";
这篇关于如何使用CAML查询从共享点列表中检索最近10天的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!