<?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: Id given back in delete event in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/705222#M31378</link>
    <description>&lt;P&gt;Its now 2023, and the list_folder api call is still broken (in my mind) regarding 'deleted' files!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the problem.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple App that responds to change notices:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With User:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Get Cursor&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;While deltapages (on cursor):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if .tag = 'file' record info in db (path, and most importantly unique ID as supplied by list_folder)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if .tag = 'deleted' update record in db for given data supplied (list_folder only provides 'path', it DOES NOT provide the ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now only way to look up info in our database is via path on deletes.&amp;nbsp; &amp;nbsp;Which of course you can have duplicate file names in any given folder, each with its own objID.&amp;nbsp; &amp;nbsp;Deleting files fails when using the dropbox API, only way to use it is tell customer to not create duplicate filenames in any given folder (dumb)!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropbox please add 'id' to your list_folder call for any .tag = 'deleted' files!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 00:29:04 GMT</pubDate>
    <dc:creator>quandt</dc:creator>
    <dc:date>2023-08-10T00:29:04Z</dc:date>
    <item>
      <title>Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236207#M13015</link>
      <description>&lt;P&gt;Can I make a feature request?&lt;BR /&gt;I would be great if the delete events coming back from `/list_folder(/continue)` include the id of the thing deleted. Seems a bit odd that they dont alredy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current:&lt;/P&gt;
&lt;PRE&gt;{
".tag": "deleted",
"name": "General_Engingeering_Test_Project.pdf",
"path_lower": "/h22/h2/general_engingeering_test_project.pdf",
"path_display": "/h22/h2/General_Engingeering_Test_Project.pdf"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Want:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
".tag": "deleted",
"id": "id:JOP3N_6VLJAAAAAAAAAJ-A", &amp;lt;- notice there is an id now
"name": "General_Engingeering_Test_Project.pdf",
"path_lower": "/h22/h2/general_engingeering_test_project.pdf",
"path_display": "/h22/h2/General_Engingeering_Test_Project.pdf"
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ps. i can see how it would be unfair to make comparisons across services but i just wanted to point out that both google drive and box return an id in their delete events.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 14:14:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236207#M13015</guid>
      <dc:creator>YawHide</dc:creator>
      <dc:date>2020-11-18T14:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236214#M13016</link>
      <description>Thanks for the post! I can't make any promises, but I'm sending this feature request along to the team.</description>
      <pubDate>Wed, 09 Aug 2017 19:30:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236214#M13016</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-09T19:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236215#M13017</link>
      <description>&lt;P&gt;how would I know if the team accepts or declines this request?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:32:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236215#M13017</guid>
      <dc:creator>YawHide</dc:creator>
      <dc:date>2017-08-09T19:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236217#M13018</link>
      <description>I'll make a note to follow up on this thread if/when I have an update for you.</description>
      <pubDate>Wed, 09 Aug 2017 19:37:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236217#M13018</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-08-09T19:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236222#M13019</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt; wrote:&lt;BR /&gt;I'll make a note to follow up on this thread if/when I have an update for you.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 19:51:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/236222#M13019</guid>
      <dc:creator>YawHide</dc:creator>
      <dc:date>2017-08-09T19:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/705222#M31378</link>
      <description>&lt;P&gt;Its now 2023, and the list_folder api call is still broken (in my mind) regarding 'deleted' files!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the problem.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple App that responds to change notices:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With User:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Get Cursor&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;While deltapages (on cursor):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if .tag = 'file' record info in db (path, and most importantly unique ID as supplied by list_folder)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if .tag = 'deleted' update record in db for given data supplied (list_folder only provides 'path', it DOES NOT provide the ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now only way to look up info in our database is via path on deletes.&amp;nbsp; &amp;nbsp;Which of course you can have duplicate file names in any given folder, each with its own objID.&amp;nbsp; &amp;nbsp;Deleting files fails when using the dropbox API, only way to use it is tell customer to not create duplicate filenames in any given folder (dumb)!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropbox please add 'id' to your list_folder call for any .tag = 'deleted' files!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 00:29:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/705222#M31378</guid>
      <dc:creator>quandt</dc:creator>
      <dc:date>2023-08-10T00:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/705359#M31380</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1545983"&gt;@quandt&lt;/a&gt; Thanks for the feedback! I'll pass this along to the team.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 14:47:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/705359#M31380</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-08-10T14:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Id given back in delete event</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/705560#M31385</link>
      <description>&lt;P&gt;thanks!&amp;nbsp; &amp;nbsp;It seems to be that list_folder likely depends on metadata call, which I think is the real culprit (of not giving back the objID on deleted files).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My delete methods now do the hard thing, namely on delete of a file in a given path, list all files in that path that are not deleted, and remove any files from our DB that are NOT listed.&amp;nbsp; &amp;nbsp;That way our DB stays in sync on what is actually happening.&amp;nbsp; &amp;nbsp;Bad news, too many API calls, takes too long for what should be really simple.&amp;nbsp; But it solves the immediate problem (hope I don't hit the rate limiting....)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 04:25:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Id-given-back-in-delete-event/m-p/705560#M31385</guid>
      <dc:creator>quandt</dc:creator>
      <dc:date>2023-08-11T04:25:35Z</dc:date>
    </item>
  </channel>
</rss>

