Forum Discussion
PorciaUmber
Mar 30, 2023Copper Contributor
Highlighted content library not filtering as expected
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.
1 Reply
- kalpeshvaghelaIron Contributor
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