<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Property Groups always null Java SDK in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Property-Groups-always-null-Java-SDK/m-p/512110#M25197</link>
    <description>&lt;P&gt;Apologies for the confusion. When uploading files, you won't see the property information returned in the metadata directly. (I'll pass this along as a feature request though.)&lt;BR /&gt;&lt;BR /&gt;To retrieve it, you'll need to call &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadataBuilder-java.lang.String-" rel="noreferrer" target="_blank"&gt;getMetadataBuilder&lt;/A&gt; to get a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/GetMetadataBuilder.html" rel="noreferrer" target="_blank"&gt;GetMetadataBuilder&lt;/A&gt;, and then use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/GetMetadataBuilder.html#withIncludePropertyGroups-com.dropbox.core.v2.fileproperties.TemplateFilterBase-" rel="noreferrer" target="_blank"&gt;GetMetadataBuilder.withIncludePropertyGroups&lt;/A&gt;&amp;nbsp;to specifically request the property information.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 16:14:55 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-04-08T16:14:55Z</dc:date>
    <item>
      <title>Property Groups always null Java SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Property-Groups-always-null-Java-SDK/m-p/511926#M25194</link>
      <description>&lt;P&gt;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.&amp;nbsp; The property groups should have been included when the file is uploaded.&amp;nbsp; I use the Java SDK and I have tried a few different ways:&lt;/P&gt;
&lt;PRE&gt;FileMetadata metadata = client.withPathRoot(pathRoot)&lt;BR /&gt;        .files()&lt;BR /&gt;        .uploadBuilder(finalFilePath)&lt;BR /&gt;        .withPropertyGroups(propertyGroups)&lt;BR /&gt;        .uploadAndFinish(in)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;And also&lt;/P&gt;
&lt;PRE&gt;FileMetadata metadata = client.withPathRoot(pathRoot)&lt;BR /&gt;.files()&lt;BR /&gt;.uploadBuilder(finalFilePath)&lt;BR /&gt;.uploadAndFinish(in)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;client.fileProperties().propertiesAdd(metadata.getId()&lt;SPAN&gt;, &lt;/SPAN&gt;propertyGroups)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I try getting the metadata a couple of different ways but it is always null:&lt;/P&gt;
&lt;PRE&gt;client.withPathRoot(pathRoot).files().getMetadata(filePath)&lt;/PRE&gt;
&lt;P&gt;Nothing seems to work.&amp;nbsp; Any help will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 21:50:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Property-Groups-always-null-Java-SDK/m-p/511926#M25194</guid>
      <dc:creator>dsecfx</dc:creator>
      <dc:date>2021-04-07T21:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Property Groups always null Java SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Property-Groups-always-null-Java-SDK/m-p/512110#M25197</link>
      <description>&lt;P&gt;Apologies for the confusion. When uploading files, you won't see the property information returned in the metadata directly. (I'll pass this along as a feature request though.)&lt;BR /&gt;&lt;BR /&gt;To retrieve it, you'll need to call &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getMetadataBuilder-java.lang.String-" rel="noreferrer" target="_blank"&gt;getMetadataBuilder&lt;/A&gt; to get a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/GetMetadataBuilder.html" rel="noreferrer" target="_blank"&gt;GetMetadataBuilder&lt;/A&gt;, and then use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/GetMetadataBuilder.html#withIncludePropertyGroups-com.dropbox.core.v2.fileproperties.TemplateFilterBase-" rel="noreferrer" target="_blank"&gt;GetMetadataBuilder.withIncludePropertyGroups&lt;/A&gt;&amp;nbsp;to specifically request the property information.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 16:14:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Property-Groups-always-null-Java-SDK/m-p/512110#M25197</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-04-08T16:14:55Z</dc:date>
    </item>
  </channel>
</rss>

