<?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: Getting deleted DBRecord information from Datastore sync: in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6592#M262</link>
    <description>&lt;P&gt;Thank you. Now the problem solved. &lt;/P&gt;

&lt;P&gt;I think I just missed this paragraph in tutorial:&lt;/P&gt;

&lt;P&gt;"Each record has a string ID. An ID can be provided when a record is created, or one will be automatically generated and assigned if none is provided. Once a record is created, the ID cannot be changed."&lt;/P&gt;</description>
    <pubDate>Fri, 26 Dec 2014 09:35:00 GMT</pubDate>
    <dc:creator>H. Yi-Shan</dc:creator>
    <dc:date>2014-12-26T09:35:00Z</dc:date>
    <item>
      <title>Getting deleted DBRecord information from Datastore sync:</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6588#M258</link>
      <description>&lt;P&gt;I'm developing an iOS app with Datastore. &lt;/P&gt;

&lt;P&gt;How do I know records deleted from remote? I watch changes with observer (status.incoming) and call sync: and it return the changes. The deleted DBRecord will be return but the properties can't be accessed, which I use for storing a unique ID for my data, and compare them in my Core Data database. &lt;/P&gt;

&lt;P&gt;(I don't use Datastore as my main database is because I also have an iCloud sync option. )&lt;/P&gt;

&lt;P&gt;The only thing I can get from the deleted Record is isDeleted flag. There seems not much I can get with the sync: API. Right now I just have to make my own isDeleted flag in the DBRecord but not actually delete the record. &lt;/P&gt;

&lt;P&gt;Is there better way to do it?&lt;/P&gt;

&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:46:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6588#M258</guid>
      <dc:creator>H. Yi-Shan</dc:creator>
      <dc:date>2019-05-29T09:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting deleted DBRecord information from Datastore sync:</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6589#M259</link>
      <description>&lt;P&gt;There's no way from the iOS Datastore SDK to access the fields of deleted records after they've been deleted.&lt;/P&gt;

&lt;P&gt;Why don't you just use the record ID as the unique ID? That seems like a more robust solution in general. (For example, you get the guarantee that you won't have two records with the same record ID.)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Dec 2014 19:03:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6589#M259</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2014-12-24T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting deleted DBRecord information from Datastore sync:</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6590#M260</link>
      <description>&lt;P&gt;Thanks for the clarification.&lt;/P&gt;

&lt;P&gt;I don't use record ID as unique ID because I have other sync options (iCloud).&lt;/P&gt;</description>
      <pubDate>Thu, 25 Dec 2014 17:02:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6590#M260</guid>
      <dc:creator>H. Yi-Shan</dc:creator>
      <dc:date>2014-12-25T17:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting deleted DBRecord information from Datastore sync:</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6591#M261</link>
      <description>&lt;P&gt;I don't understand. Instead of putting the ID in another field, just make it the record ID.&lt;/P&gt;

&lt;P&gt;E.g. instead of this:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[myTable insert:@{ @"unique_id": @"abc123", @"foo": @"bar" }];&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;you can do this:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[myTable getOrInsertRecord:@"abc123", fields: @{ @"foo": @"bar" }, ...]&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2014 06:01:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6591#M261</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2014-12-26T06:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting deleted DBRecord information from Datastore sync:</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6592#M262</link>
      <description>&lt;P&gt;Thank you. Now the problem solved. &lt;/P&gt;

&lt;P&gt;I think I just missed this paragraph in tutorial:&lt;/P&gt;

&lt;P&gt;"Each record has a string ID. An ID can be provided when a record is created, or one will be automatically generated and assigned if none is provided. Once a record is created, the ID cannot be changed."&lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2014 09:35:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Getting-deleted-DBRecord-information-from-Datastore-sync/m-p/6592#M262</guid>
      <dc:creator>H. Yi-Shan</dc:creator>
      <dc:date>2014-12-26T09:35:00Z</dc:date>
    </item>
  </channel>
</rss>

