Forum Discussion

dsecfx's avatar
dsecfx
New member | Level 2
4 years ago

Property Groups always null Java SDK

I have created a template and a list of property group objects but when I get the meta data for the file in a search after I've uploaded it says null for property group.  The property groups should have been included when the file is uploaded.  I use the Java SDK and I have tried a few different ways:

FileMetadata metadata = client.withPathRoot(pathRoot)
.files()
.uploadBuilder(finalFilePath)
.withPropertyGroups(propertyGroups)
.uploadAndFinish(in);

And also

FileMetadata metadata = client.withPathRoot(pathRoot)
.files()
.uploadBuilder(finalFilePath)
.uploadAndFinish(in);
client.fileProperties().propertiesAdd(metadata.getId(), propertyGroups);

I try getting the metadata a couple of different ways but it is always null:

client.withPathRoot(pathRoot).files().getMetadata(filePath)

Nothing seems to work.  Any help will be greatly appreciated.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 3 hours ago
350 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!