<?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: add feature return objectid in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/add-feature-return-objectid/m-p/1090743#M351</link>
    <description>&lt;P&gt;answered by own question....&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sub = add_res.get("addResults")[0].get("objectId")&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 20 Aug 2021 10:02:04 GMT</pubDate>
    <dc:creator>StuartMoore</dc:creator>
    <dc:date>2021-08-20T10:02:04Z</dc:date>
    <item>
      <title>add feature return objectid</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/add-feature-return-objectid/m-p/1090741#M350</link>
      <description>&lt;P&gt;so ive created a Notebook that adds a record into a table but i want to add the results objectID to a variable but i can't figure out how to get it&lt;/P&gt;&lt;P&gt;this is my code that adds the record and prints the results but thats as far as i've got&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    add_res = Hist.edit_features(adds = [hAdd])
    
    print(add_res)
    sub = add_res['objectid']
    print(sub[0])&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;{'addResults': [{'objectId': 437, 'uniqueId': 437, 'globalId': 'D8CCE07Bxx9B8', 'success': True}], 'updateResults': [], 'deleteResults': []}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 09:50:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/add-feature-return-objectid/m-p/1090741#M350</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2021-08-20T09:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: add feature return objectid</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/add-feature-return-objectid/m-p/1090743#M351</link>
      <description>&lt;P&gt;answered by own question....&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sub = add_res.get("addResults")[0].get("objectId")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 10:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/add-feature-return-objectid/m-p/1090743#M351</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2021-08-20T10:02:04Z</dc:date>
    </item>
  </channel>
</rss>

