1

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

0

1 Answer 1

2

Something like this:

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

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.