<?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 working example: export all layers from features in arcgis online using rest in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/working-example-export-all-layers-from-features-in/m-p/610067#M30476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;The last couple of months have been an education. Developing -amongst others- a way to backup our online data including attachments. I didn't know much about python, not much about agol and I barely had heard about REST. I want to share my solution here because I hope people can benefit from it. Everything you need to fill in yourself starts with 'my_'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachend script scans through the arcgis online hosted feature services, then exports and downloads a zipped file geodatabase per layer containing attachments if attachments are present. &lt;/P&gt;&lt;P&gt;I'm very happy with that because my basic arcmap license doesn't allow me to connect to agol and make a 'local copy for editing' when attachements are present. Also this script works when our licensemanager is offline or depleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is based on work from Jake Skinner and Andrew Chapowski; Thanks Jake and thanks Andrew!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not a neat script although I use comments to explain a bit and there is a logfile of sorts. It's not 'pythonesque', 'pythonese', 'oop' or whatever. I feel more comfortable using IF: than TRY: I use way to many modules, so I'm sure real developers out there can rewrite the script to half it's current size while outperforming this 10 to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been struggling with getting through our&amp;nbsp; companies proxy and at the moment I am still not able to get the second part working over a proxy, without a proxy all is fine. Our IT has come my way and later this week I'll get a firewall rule and the script will run without a proxy. (thank you IT guys!) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, have fun! Should you have any questions feel free to ask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2016 12:17:03 GMT</pubDate>
    <dc:creator>Gisbert61</dc:creator>
    <dc:date>2016-08-02T12:17:03Z</dc:date>
    <item>
      <title>working example: export all layers from features in arcgis online using rest</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/working-example-export-all-layers-from-features-in/m-p/610067#M30476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;The last couple of months have been an education. Developing -amongst others- a way to backup our online data including attachments. I didn't know much about python, not much about agol and I barely had heard about REST. I want to share my solution here because I hope people can benefit from it. Everything you need to fill in yourself starts with 'my_'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachend script scans through the arcgis online hosted feature services, then exports and downloads a zipped file geodatabase per layer containing attachments if attachments are present. &lt;/P&gt;&lt;P&gt;I'm very happy with that because my basic arcmap license doesn't allow me to connect to agol and make a 'local copy for editing' when attachements are present. Also this script works when our licensemanager is offline or depleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is based on work from Jake Skinner and Andrew Chapowski; Thanks Jake and thanks Andrew!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not a neat script although I use comments to explain a bit and there is a logfile of sorts. It's not 'pythonesque', 'pythonese', 'oop' or whatever. I feel more comfortable using IF: than TRY: I use way to many modules, so I'm sure real developers out there can rewrite the script to half it's current size while outperforming this 10 to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been struggling with getting through our&amp;nbsp; companies proxy and at the moment I am still not able to get the second part working over a proxy, without a proxy all is fine. Our IT has come my way and later this week I'll get a firewall rule and the script will run without a proxy. (thank you IT guys!) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, have fun! Should you have any questions feel free to ask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 12:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/working-example-export-all-layers-from-features-in/m-p/610067#M30476</guid>
      <dc:creator>Gisbert61</dc:creator>
      <dc:date>2016-08-02T12:17:03Z</dc:date>
    </item>
  </channel>
</rss>

