Highlighted content library not filtering as expected

Copper Contributor

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. 

 

PorciaUmber_0-1680196140424.png

 

1 Reply

@PorciaUmber 

 

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:

 

kalpeshvaghela_0-1680251259648.png

 

kalpeshvaghela_1-1680251288605.png

 

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