I need to make a Caml query to filter a list from content type AND for a specific value from a list. For example, a content type ID and a field value "English" from the column "languages" will get all the data/rows from the list with said content type and where languages is equal to "English".
So far I have this:
`<View><ViewFields><FieldRef Name='BannerImageUrl' />
<FieldRef Name='intraSubhead' /><FieldRef Name='FileLeafRef' /><FieldRef Name='Title' />
<FieldRef Name='intraContentCategory' /></ViewFields>
<Query>
<Where>
<And>
<BeginsWith><FieldRef Name='ContentTypeId'/>
<Value Type='ContentTypeId'>${contentTypeId} //I load the content type here
<Eq>
<FieldRef Name="intraLanguages" />
</Value>
<Value Type="TaxonomyFieldType">${currentLanguage} // value like "English" and so on.
</Value>
</Eq>
</And>
</BeginsWith>
</Where></Query>
</View>`;
As seen above I try to do filter with content type and a value in a taxonomy field (intraLanguages). It doesn't work. Any help?