Skip to main content
Question

Metadata

  • May 21, 2025
  • 4 replies
  • 9 views

Forum|alt.badge.img

file.getMetadata() gives 404 error for files without metadata attached.

Any way to fileter those out.

4 replies

Forum|alt.badge.img

 The Box Java SDK currently does not provide a way to filter files without metadata attached. To request this feature, can you please open this as an issue on the Box Java SDK?


Forum|alt.badge.img

Hi,

I wanted to check if a particular metadata key exists or not for a box info
item.

And I could not find any java code to do same.


Thanks and regards,
Shruti Desai


Forum|alt.badge.img

Hi,

I wanted to check if a particular metadata key exists or not for a box info
item.

And I could not find any java code to do same.


Thanks and regards,
Shruti Desai


Forum|alt.badge.img

Hi,

 

I started writting some methods in unirest (http://unirest.io/java.html) just as a POC of both BOX and unirest APIs.

If you don't mind adding more dependencies in your project you can use that as example.

 

https://github.com/abelsromero/box-groovy-wrapper/blob/master/src/main/java/org/abelsromero/box/sdk/Files.java#L62-L76.