<?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>idea Python API: create view for hosted table in Developers Ideas</title>
    <link>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idi-p/934072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently it is not possible to create a view from a hosted table using the ArcGIS Python API. This might be a very useful tool to allow multilanguage implementations without duplicating data in AGOL or Portal. This way, data maintenance and update tasks might be simplified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2019 06:16:11 GMT</pubDate>
    <dc:creator>XabierVelasco_Echeverría</dc:creator>
    <dc:date>2019-05-31T06:16:11Z</dc:date>
    <item>
      <title>Python API: create view for hosted table</title>
      <link>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idi-p/934072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently it is not possible to create a view from a hosted table using the ArcGIS Python API. This might be a very useful tool to allow multilanguage implementations without duplicating data in AGOL or Portal. This way, data maintenance and update tasks might be simplified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 06:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idi-p/934072</guid>
      <dc:creator>XabierVelasco_Echeverría</dc:creator>
      <dc:date>2019-05-31T06:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python API: create view for hosted table</title>
      <link>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idc-p/934073#M373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be very welcome addition... or should I say fix. This would allow us actually use the view publishing through Python API. If someone knows a good workaround, I would be happy to hear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 11:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idc-p/934073#M373</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2020-01-09T11:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python API: create view for hosted table</title>
      <link>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idc-p/934074#M374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would enable us to create hosted feature layer views via the python API in the same way as we can using the web map Analysis / Summarize Data / Join Features tool.&amp;nbsp; This is actually vital as we are unable to make any data model changes to layers that participate in views - the views must be deleted first and then recreated afterwards.&amp;nbsp; This is a tedious and error-prone procedure that puts production web maps and web applications at risk.&amp;nbsp; The ability to create hosted feature layer views via the python API would greatly improve this workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 18:22:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idc-p/934074#M374</guid>
      <dc:creator>GrahamMorgan3</dc:creator>
      <dc:date>2020-01-28T18:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python API: create view for hosted table</title>
      <link>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idc-p/1076647#M1087</link>
      <description>&lt;P&gt;You can create view on both tables and feature layers:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.features import FeatureLayerCollection, FeatureCollection

gis = GIS(profile='&amp;lt;login profile&amp;gt;')
item = gis.content.get("&amp;lt;item id&amp;gt;") # Table or Feature Layer Item
fs = FeatureLayerCollection.fromitem(item)
view_item = fs.manager.create_view(name='&amp;lt;Item Name&amp;gt;', spatial_reference=None, extent=None, allow_schema_changes=True, updateable=True, capabilities='Query', view_layers=None, view_tables=None, description=None, tags=None, snippet=None, overwrite=None, set_item_id=None)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 09:37:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/python-api-create-view-for-hosted-table/idc-p/1076647#M1087</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2021-07-08T09:37:47Z</dc:date>
    </item>
  </channel>
</rss>

