<?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: Best Practise for scripting updating of hosted feature services? in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/best-practise-for-scripting-updating-of-hosted/m-p/708205#M3499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi, this seems like a perfect use case for our new python api,&lt;/P&gt;&lt;P class=""&gt;and in fact it’s a very similar scenario to some of the examples they share as notebooks&lt;/P&gt;&lt;P class=""&gt;in the documentation for it. If you’re not familiar with them, Jupyter notebooks are environments where&lt;/P&gt;&lt;P class=""&gt;you write your python code, run it, and view the results all in the same screen.&lt;/P&gt;&lt;P class=""&gt;You can think of it as your script, text editor and terminal all in one place. Another benefit of the notebook workflow,&lt;/P&gt;&lt;P class=""&gt;is that they can be easily modified as necessary, and shared as a single file.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Having said that, the Jupyter Notebook integration with the python api is completely optional.&lt;/P&gt;&lt;P class=""&gt;You could export your notebook to a .py file, as it’s just standard python code, or write it in your text editor of choice from the start.&lt;/P&gt;&lt;P class=""&gt;This would give you the ability to automate running the script, while still benefitting from the perks of the modern api.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;You linked to the guide for the api in your post. &lt;A href="https://developers.arcgis.com/python/sample-notebooks/publishing-sd-shapefiles-and-csv/"&gt;Here&lt;/A&gt; is one of the notebooks in the documentation that you should take a look at also.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Thank you,&lt;/P&gt;&lt;P class=""&gt;Marvin Perry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2017 00:06:02 GMT</pubDate>
    <dc:creator>MarvinPerry</dc:creator>
    <dc:date>2017-02-23T00:06:02Z</dc:date>
    <item>
      <title>Best Practise for scripting updating of hosted feature services?</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/best-practise-for-scripting-updating-of-hosted/m-p/708204#M3498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A number of organisations will have an isolated internal ArcGIS Server deployment, and wish to setup an automated workflow for overwriting a subset of their datasets to hosted feature services within their ArcGIS Online Account, which then flow through to their ArcGIS Open Data site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen a number of scripts out there, but was wondering if there was a preferred approach or set of scripts that are recommended? &amp;nbsp;This would be a one-way push of data, and simply overwriting the service should suffice and I believe this does not change the ID of the item, therefore does not have any undesirable knock on effects with URLs to datasets changing in the Open Data site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally looking for some base scripts that can be easily adapted/re-usable for different organisations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Semi-related, but would also like to know the pros and cons of publishing each layer as a separate hosted feature service versus grouping your layers into categories and publishing as one hosted feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some related links:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/arcpy/update-hosted-feature-service" title="https://github.com/arcpy/update-hosted-feature-service"&gt;GitHub - arcpy/update-hosted-feature-service: Update and overwrite a hosted feature service on ArcGIS.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/overwrite-hosted-features" title="https://github.com/Esri/overwrite-hosted-features"&gt;GitHub - Esri/overwrite-hosted-features: The Transportation 511 Script is used to keep the contents of a Feature Collect…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/EsriUK/PythonAGOLTools" title="https://github.com/EsriUK/PythonAGOLTools"&gt;GitHub - EsriUK/PythonAGOLTools: Demo scripts and productivity enhancements for ArcGIS Online using Python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/accessing-and-creating-your-content/" title="https://developers.arcgis.com/python/guide/accessing-and-creating-your-content/"&gt;Accessing and creating content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://server.arcgis.com/en/portal/latest/administer/linux/scripting-administrative-tasks-with-portalpy.htm" title="http://server.arcgis.com/en/portal/latest/administer/linux/scripting-administrative-tasks-with-portalpy.htm"&gt;Scripting administrative tasks with PortalPy—Portal for ArcGIS (10.5) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 07:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/best-practise-for-scripting-updating-of-hosted/m-p/708204#M3498</guid>
      <dc:creator>SimonJackson</dc:creator>
      <dc:date>2017-02-18T07:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practise for scripting updating of hosted feature services?</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/best-practise-for-scripting-updating-of-hosted/m-p/708205#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi, this seems like a perfect use case for our new python api,&lt;/P&gt;&lt;P class=""&gt;and in fact it’s a very similar scenario to some of the examples they share as notebooks&lt;/P&gt;&lt;P class=""&gt;in the documentation for it. If you’re not familiar with them, Jupyter notebooks are environments where&lt;/P&gt;&lt;P class=""&gt;you write your python code, run it, and view the results all in the same screen.&lt;/P&gt;&lt;P class=""&gt;You can think of it as your script, text editor and terminal all in one place. Another benefit of the notebook workflow,&lt;/P&gt;&lt;P class=""&gt;is that they can be easily modified as necessary, and shared as a single file.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Having said that, the Jupyter Notebook integration with the python api is completely optional.&lt;/P&gt;&lt;P class=""&gt;You could export your notebook to a .py file, as it’s just standard python code, or write it in your text editor of choice from the start.&lt;/P&gt;&lt;P class=""&gt;This would give you the ability to automate running the script, while still benefitting from the perks of the modern api.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;You linked to the guide for the api in your post. &lt;A href="https://developers.arcgis.com/python/sample-notebooks/publishing-sd-shapefiles-and-csv/"&gt;Here&lt;/A&gt; is one of the notebooks in the documentation that you should take a look at also.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Thank you,&lt;/P&gt;&lt;P class=""&gt;Marvin Perry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 00:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/best-practise-for-scripting-updating-of-hosted/m-p/708205#M3499</guid>
      <dc:creator>MarvinPerry</dc:creator>
      <dc:date>2017-02-23T00:06:02Z</dc:date>
    </item>
  </channel>
</rss>

