Mar 30 2023 10:09 AM
Hello,
I'm new to this so apologies if this is a simple question.
I'm trying to filter the view of a highlighted content library by managed data, but when adding the below it's not filtering on the 'Avon & Stour' team - instead it's showing all folders from the library.
Thanks in advance.
Mar 31 2023 01:28 AM
It seems that you are missing <Where> tag inside CAML Query and also you don't need to encode "&".
Try below query:
<View>
<Query>
<Where>
<Eq>
<FieldRef Name='FieldTeam' />
<Value Type='Taxonomy'>Avon & Stour</Value>
</Eq>
</Where>
</Query>
</View>
See below screen shots:
See more documentation on CAML Query at below link:
https://learn.microsoft.com/en-us/sharepoint/dev/schema/query-schema
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community