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

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, privacy policy and cookie policy

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