Skip to main content
Question

Search Metadata (using OR operation)

  • May 22, 2025
  • 1 reply
  • 18 views

Forum|alt.badge.img

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

Forum|alt.badge.img

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