<?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 How do I pass a unique identifier in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-pass-a-unique-identifier/m-p/412548#M20654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is in regard to automatically updating an existing Feature Layer in AGOL.&amp;nbsp; I’ve looked through all the little help screens I can find, but can still find no answer.&amp;nbsp; This is the last section of a bit of code I’ve written to update a Feature Layer.&amp;nbsp; Program pulls FE_Insp from the AGOL account just fine, makes a copy of the file as a csv.&amp;nbsp; It then runs a couple of reports, and then does an overwrite of one field within the CSV (from “Yes” to “No”) … done to reset an inspection form to be used in a web app every month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will not allow me to re-upload and re-publish the new file.&amp;nbsp; I can go to the site and manually walk through the update portion.&amp;nbsp; It has changed to Append, and now wants a Unique Identifier set (GlobalID) … not a big deal to do manually, but how do I pass that identifier in just this little bit of code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.1] - FE_Insp ... Access the AGOL Account.&lt;/P&gt;&lt;P&gt;gis = GIS("&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.arcgis.com&amp;amp;data=02%7C01%7C%7C07c1d4e0b9d848ba01b208d6cd806a73%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636922348755296495&amp;amp;sdata=DdXyGJIpkDqfmq04UASrA5y718VAJ2pVAu2S7y6lM7Y%3D&amp;amp;reserved=0"&gt;https://www.arcgis.com&lt;/A&gt;", userid , password)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.2] ... Search for 'FE_Insp' feature layer collection&lt;/P&gt;&lt;P&gt;search_results = gis.content.search('title: FE_Insp', 'Feature Layer')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.3] ... Access the first Item that's returned&lt;/P&gt;&lt;P&gt;fh_item = search_results[0]&lt;/P&gt;&lt;P&gt;fh_item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.4] ... from arcgis.features import FeatureLayerCollection&lt;/P&gt;&lt;P&gt;fh_flayer_collection = FeatureLayerCollection.fromitem(fh_item)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.5] ...&amp;nbsp; call the overwrite() method which can be accessed using the manager property&lt;/P&gt;&lt;P&gt;fh_flayer_collection.manager.overwrite('D:\WebApps\OMID\FE_Insp.csv')&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;&lt;/P&gt;&lt;P&gt;print("1.5 - Feature Layer FE_Insp has been updated")&lt;/P&gt;&lt;P&gt;print("")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2019 15:53:42 GMT</pubDate>
    <dc:creator>JackieFisher</dc:creator>
    <dc:date>2019-04-30T15:53:42Z</dc:date>
    <item>
      <title>How do I pass a unique identifier</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-pass-a-unique-identifier/m-p/412548#M20654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is in regard to automatically updating an existing Feature Layer in AGOL.&amp;nbsp; I’ve looked through all the little help screens I can find, but can still find no answer.&amp;nbsp; This is the last section of a bit of code I’ve written to update a Feature Layer.&amp;nbsp; Program pulls FE_Insp from the AGOL account just fine, makes a copy of the file as a csv.&amp;nbsp; It then runs a couple of reports, and then does an overwrite of one field within the CSV (from “Yes” to “No”) … done to reset an inspection form to be used in a web app every month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will not allow me to re-upload and re-publish the new file.&amp;nbsp; I can go to the site and manually walk through the update portion.&amp;nbsp; It has changed to Append, and now wants a Unique Identifier set (GlobalID) … not a big deal to do manually, but how do I pass that identifier in just this little bit of code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.1] - FE_Insp ... Access the AGOL Account.&lt;/P&gt;&lt;P&gt;gis = GIS("&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.arcgis.com&amp;amp;data=02%7C01%7C%7C07c1d4e0b9d848ba01b208d6cd806a73%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636922348755296495&amp;amp;sdata=DdXyGJIpkDqfmq04UASrA5y718VAJ2pVAu2S7y6lM7Y%3D&amp;amp;reserved=0"&gt;https://www.arcgis.com&lt;/A&gt;", userid , password)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.2] ... Search for 'FE_Insp' feature layer collection&lt;/P&gt;&lt;P&gt;search_results = gis.content.search('title: FE_Insp', 'Feature Layer')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.3] ... Access the first Item that's returned&lt;/P&gt;&lt;P&gt;fh_item = search_results[0]&lt;/P&gt;&lt;P&gt;fh_item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.4] ... from arcgis.features import FeatureLayerCollection&lt;/P&gt;&lt;P&gt;fh_flayer_collection = FeatureLayerCollection.fromitem(fh_item)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# In[1.5] ...&amp;nbsp; call the overwrite() method which can be accessed using the manager property&lt;/P&gt;&lt;P&gt;fh_flayer_collection.manager.overwrite('D:\WebApps\OMID\FE_Insp.csv')&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;&lt;/P&gt;&lt;P&gt;print("1.5 - Feature Layer FE_Insp has been updated")&lt;/P&gt;&lt;P&gt;print("")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-pass-a-unique-identifier/m-p/412548#M20654</guid>
      <dc:creator>JackieFisher</dc:creator>
      <dc:date>2019-04-30T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I pass a unique identifier</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-pass-a-unique-identifier/m-p/412549#M20655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/group/4814"&gt;ArcGIS API for Python&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 16:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-pass-a-unique-identifier/m-p/412549#M20655</guid>
      <dc:creator>KellyGerrow</dc:creator>
      <dc:date>2019-05-06T16:15:57Z</dc:date>
    </item>
  </channel>
</rss>

