Skip to main content
Box Employee
May 22, 2025 7:56 AM UTC
Question

Search Metadata (using OR operation)

Can 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}}]

    1 reply

    Box Employee
    May 22, 2025 7:56 AM UTC

    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

    Translate