Forum Discussion

paullawrencetbwa's avatar
paullawrencetbwa
Copper Contributor
Feb 15, 2022

CAML Show Modified Date on Highlighted Content

I'm working with the Highlighted Content webpart and we want to show the Modified date for all recently modified pages.

 

My CAML filter is configured as below and I'm including the Modified Field in the ViewFields section.

<View>
<Where>
<And>
<Geq>
<FieldRef Name='Modifed' /> <Value IncludeTimeValue='FALSE'
Type='DateTime'>2022-02-01T00:00:00Z</Value>
</Geq>
<Leq>
<FieldRef Name='Modifed' />
<Value IncludeTimeValue='FALSE' Type='DateTime'>2017-05-01T00:00:00Z</Value>
</Leq>
</And>
</Where>
<ViewFields>
<FieldRef Name="Title" />
<FieldRef Name="File_x0020_Type" />
<FieldRef Name="Modified" />
</ViewFields>
</View>

 

 

What am I doing wrong?

 

No RepliesBe the first to reply

Resources