I need to filter several documents in document library based on file properties(Two managed metadata property)using CAML query. Please suggest me an idea to achieve this


1 Answer 1


Something like this:

query.Query = @"<Where><And>
                  <FieldRef Name='" + MyTaxonomyFieldName + @"' />
                  <Value Type='Text'>" + tagName + @"</Value>
                  <FieldRef Name='" + MyTaxonomyFieldName2 + @"' />
                  <Value Type='Text'>" + tagName + @"</Value>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.