CAML Query with Managed Metadata (quote):
Just use the field as you would any lookup, basing your query on the display value, not the ID. SharePoint will support any types of queries you can on a text field, such as equals, contains or begins with. So you can even enter just a couple of characters and receive search results!
Something like this works great:
<where>
<contains>
<fieldref name="ManagedMetadata">
<value type="TaxonomyFieldType">My Value</value>
</fieldref>
</contains>
</where>
Managed MetaData “ampersand” values
- Managed MetaData “ampersand” values (termset)
- SharePoint 2010: Managed Metadata Converts Ampersand and Double Quotes to Unicode
<Eq>
<FieldRef Name='MyTaxonomyField' />
<Value Type='TaxonomyFieldType'>Science \uFF06 Technology</Value>
</Eq>
No comments:
Post a Comment