Search Metadata (using OR operation)
AnsweredCan I search in metadata using OR operation?
Ex. I have a file
①TEST1(with metadata:test1)、
②TEST2(with metadata: test2)
with same templateKey.
Is it possible to search both files?
https://{{api.box.com}}/2.0/search?&mdfilters=[{"scope":"enterprise","templateKey":"TEST-METADATA","filters":{"TEST-META":"test1 or test2}}]
-
Hi ,
Yes, the new metadata query API will accept a number of logical operators: https://developer.box.com/guides/metadata/queries/syntax/#Logical-operators
- Jon
Please sign in to leave a comment.
Comments
1 comment