<?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: How do I set the record ID for a DBRecord when it's created on iOS? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-record-ID-for-a-DBRecord-when-it-s-created-on/m-p/59427#M1871</link>
    <description>&lt;P&gt;You need to use &lt;A href="https://www.dropbox.com/developers/datastore/docs/ios#DBTable.getOrInsertRecord:fields:inserted:error:DBTable.getOrInsertRecord:fields:inserted:error:" rel="nofollow noreferrer"&gt;&lt;CODE&gt;getOrInsertRecord&lt;/CODE&gt;&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2015 02:55:45 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-03-16T02:55:45Z</dc:date>
    <item>
      <title>How do I set the record ID for a DBRecord when it's created on iOS?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-record-ID-for-a-DBRecord-when-it-s-created-on/m-p/59426#M1870</link>
      <description>&lt;P&gt;I need to set the ID of a DBRecord (Dropbox record) when I create it, but I don't see in the documentation where it explains how. It just says, "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;

&lt;P&gt;I've tried the following...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NSString *id = @"1";
NSDictionary *record = @{@"recordId" : id, @"otherField" : @"whatever"};
[tbl insert:record];
[self.datastore sync:nil]; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...but I'm completely guessing at the name of the id field and that code just creates an additional property called "recordId", rather than setting the actual record id.&lt;/P&gt;

&lt;P&gt;How do I set the id for a DBRecord when I create it? Thanks in advance for your wisdom!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:44:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-record-ID-for-a-DBRecord-when-it-s-created-on/m-p/59426#M1870</guid>
      <dc:creator>Joe C.6</dc:creator>
      <dc:date>2019-05-29T09:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the record ID for a DBRecord when it's created on iOS?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-record-ID-for-a-DBRecord-when-it-s-created-on/m-p/59427#M1871</link>
      <description>&lt;P&gt;You need to use &lt;A href="https://www.dropbox.com/developers/datastore/docs/ios#DBTable.getOrInsertRecord:fields:inserted:error:DBTable.getOrInsertRecord:fields:inserted:error:" rel="nofollow noreferrer"&gt;&lt;CODE&gt;getOrInsertRecord&lt;/CODE&gt;&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 02:55:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-set-the-record-ID-for-a-DBRecord-when-it-s-created-on/m-p/59427#M1871</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-16T02:55:45Z</dc:date>
    </item>
  </channel>
</rss>

