<?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: How to create a feature layer view in AGOL in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804320#M2199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, we don't support this yet. However we have reviewed this request and will consider for the subsequent versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 21:23:21 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-04-13T21:23:21Z</dc:date>
    <item>
      <title>How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804319#M2198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how you would, using the Python API, create a feature layer view in ArcGIS Online (or Portal 10.5 for that matter I guess)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm referring here to the new views capability that arrived in AGOL back in December, that allows you to create a view of an existing hosted feature layer, but with different editing capabilities, field visibility, filtered features etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 06:14:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804319#M2198</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-04-13T06:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804320#M2199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul, we don't support this yet. However we have reviewed this request and will consider for the subsequent versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 21:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804320#M2199</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-04-13T21:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804321#M2200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has this capability been added yet? (create Feature Layer View on AGOL via Python API)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not can you recommend an alternative approach?&amp;nbsp; Its an important aspect that appears to be overlooked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;paulg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804321#M2200</guid>
      <dc:creator>jonathanharte</dc:creator>
      <dc:date>2018-06-06T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804322#M2201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the functionality is documented here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.managers.html?highlight=view#arcgis.features.managers.FeatureLayerCollectionManager.create_view" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.managers.html?highlight=view#arcgis.features.managers.FeatureLayerCollectionManager.create_view"&gt;arcgis.features.managers module — arcgis 1.4.1 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Took us a while to find it too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 21:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804322#M2201</guid>
      <dc:creator>GregStevenson</dc:creator>
      <dc:date>2018-06-06T21:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804323#M2202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I eventually found that also, but since I’m new to this I assumes this only worked with Feature Collections... I’ll give it another go this morning. &amp;nbsp;I don’t see any method for applying the ‘filter’ or ‘query definition’ to the view that’s created, would you have an idea on this also please - apologies for using you as technical help .... thanks again and I appreciate the response to the initial question&amp;nbsp;, it helps as I’m just starting with this api.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 06:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804323#M2202</guid>
      <dc:creator>jonathanharte</dc:creator>
      <dc:date>2018-06-07T06:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804324#M2203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Greg, worked a treat .... (eventually!) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paulg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:39:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804324#M2203</guid>
      <dc:creator>jonathanharte</dc:creator>
      <dc:date>2018-06-07T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804325#M2204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the view definition query by updating the layer definition (not sure if you can directly set it when adding layers to the definition, haven't tried).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;view_layer.manager.update_definition({
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #6a8759;"&gt;'viewDefinitionQuery'&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;'1=1'&lt;/SPAN&gt;
})&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804325#M2204</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T09:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804326#M2205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sample of mine that I looked up.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;view &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; layer_name&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;create_view&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'View_name'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allow_schema_changes&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateable&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; capabilities&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Query,Create'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view_layers&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804326#M2205</guid>
      <dc:creator>GregStevenson</dc:creator>
      <dc:date>2021-12-12T09:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804327#M2206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aaron,&lt;/P&gt;&lt;P&gt;an example of this process would be good in the samples section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the response, appreciated&lt;/P&gt;&lt;P&gt;paulg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 06:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804327#M2206</guid>
      <dc:creator>jonathanharte</dc:creator>
      <dc:date>2018-06-08T06:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804328#M2207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution! However, I only get a 500 error back when trying to set the 'viewDefinitionQuery' on a created view. Any idea what is wrong? &lt;A href="https://community.esri.com/migrated-users/185883"&gt;Greg Stevenson&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/134270"&gt;Aaron Pulver&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/70585"&gt;jonathan harte&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/413176_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 15:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804328#M2207</guid>
      <dc:creator>TomPaschke</dc:creator>
      <dc:date>2018-07-04T15:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804329#M2208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind I found the mistake. Need to update the definition of the FeatureLayer not the FeatureLayerCollection &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 13:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804329#M2208</guid>
      <dc:creator>TomPaschke</dc:creator>
      <dc:date>2018-07-05T13:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804330#M2209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to create the view and update the definition for the feature view and the layers within. Everything works fine, except when I try to update the "fields" parameter in the layer's definition ('fields': listaCampos in the code below). Any ideas about this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;from arcgis.gis import GIS
gis = GIS("https://www.arcgis.com",usuario,contraseña)
servicio = gis.content.get(idProduccion)
flc = FeatureLayerCollection.fromitem(servicio)
vista = flc.manager.create_view(name='PRUEBAS6', spatial_reference=None, extent=None, allow_schema_changes=True, updateable=True, capabilities='Query,Update', view_layers=[flc.layers[1],flc.layers[3]])

vflc = FeatureLayerCollection.fromitem(gis.content.get(vista.itemid))
update_dict = {'maxRecordCount': 20000, 'allowGeometryUpdates':False} ## Se señalan 20.000 puesto que es el límite máximo de establecimientos consultables, que es la capa que más elementos puede tener (parcelas y naves solo se consideran las disponibles para el límite, etc.)
vflc.manager.update_definition(update_dict)


vflcAAE = vflc.layers[0]

listaCampos = vflcAAE.properties("fields")
for campo in listaCampos:
&amp;nbsp;&amp;nbsp;&amp;nbsp; if campo["name"] not in ['Promotor','Agua', 'Electricidad', 'Gas', 'Internet', 'Asociacionismo', 'PlanesPropuestas', 'IncidenciaPavimento', 'IncidenciaSaneamiento', 'IncidenciaElectricidad', 'IncidenciaTelecomunicaciones', 'IncidenciaGasNatural', 'IncidenciaLegal', 'IncidenciaAccesos', 'IncidenciaAlumbrado', 'IncidenciaCallejero', 'IncidenciaLicenciaActividad', 'Estado', 'DireccionUnidad', 'TelefonoUnidad', 'CorreoUnidad', 'AguaInfraestructuras', 'InternetInfraestructuras', 'GestionResiduos', 'EnergiaInfraestructuras', 'Aparcamiento', 'ServiciosComunesUnidad', 'ExcepcionQC', 'QC', 'ObsIncAlumbrado', 'ObsIncCallejero', 'ObsIncLicenciaActividad', 'ObsIncPavimento', 'ObsIncSaneamiento', 'ObsIncElectricidad', 'ObsIncTelecomunicaciones', 'ObsIncGasNatural', 'ObsIncLegal', 'ObsIncAccesos']:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; campo["editable"] = False
&amp;nbsp;&amp;nbsp;&amp;nbsp; campo["visible"] = True

update_dict = {'maxRecordCount': 2000, "viewDefinitionQuery" : "(cod_mun = '232') OR (cod_mun = '106') OR (cod_mun = '177') OR (last_edited_user = 'industriaEDER')", 'fields': listaCampos}
vflcAAE.manager.update_definition(update_dict)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Xabier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804330#M2209</guid>
      <dc:creator>XabierVelasco_Echeverría</dc:creator>
      <dc:date>2021-12-12T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804331#M2210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, the error is:&lt;/P&gt;&lt;P&gt;TypeError: Object of type 'PropertyMap' is not JSON serializable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 12:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804331#M2210</guid>
      <dc:creator>XabierVelasco_Echeverría</dc:creator>
      <dc:date>2018-08-08T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804332#M2211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check that your output is a valid JSON and that listaCampos is in the format you're expecting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 20:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804332#M2211</guid>
      <dc:creator>GregStevenson</dc:creator>
      <dc:date>2018-08-08T20:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804333#M2212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Xabier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this snippet is working for me:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;viewFL &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fromitem&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
fieldList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"POINT_X"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"POINT_Y"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SiteID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Sector"&lt;/SPAN&gt;
current_fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; viewFL&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields
new_fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; element &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; current_fields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; element&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"alias"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;not&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fieldList&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 new_fields&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"name"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;element&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"name"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"visible"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 new_fields&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"name"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;element&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"name"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"visible"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
update_definition &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"fields"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; new_fields&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
viewFL&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update_definition&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;update_definition&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804333#M2212</guid>
      <dc:creator>TomPaschke</dc:creator>
      <dc:date>2021-12-12T09:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804334#M2213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used your snippet to update the definition of the "fields" parameter. Now I do not get the error mentioned in my previous post, but when I look to the results, the "fields" parameter has not been updated. Surprisingly, other parameters in the same update are properly performed. i.e. 'maxRecordCount': or "viewDefinitionQuery". Any further ideas? I have noticed that if you change the popup configuration in the Visualization tab of the View in AGOL, it does not update "fields" either, although it seems to behave allright. It is quite wierd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Xabier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I have found out that the configuration of the popup is not stored in the view definition, but in the item that references the view. I will try to manipulate the view's popup configuration from Item rather than FeatureLayer. Something similar to what is showed in this link for webmaps:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: black;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/211499-configure-popup-attributes-programmatically-with-arcgis-api-for-python"&gt;https://community.esri.com/thread/211499-configure-popup-attributes-programmatically-with-arcgis-api-for-python&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 11:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804334#M2213</guid>
      <dc:creator>XabierVelasco_Echeverría</dc:creator>
      <dc:date>2018-08-09T11:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804335#M2214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone figured out how to specify the view_layers?? Below are two samples. The first successfully creates a view. The second attempts to create a view but specifying only a single layer from the feature layer collection using view_layers. It doesn't work, returns an error "'FeatureLayerManager' object has no attribute 'manager'".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis import GIS, features&lt;BR /&gt;&lt;SPAN&gt;mygis = GIS("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" rel="nofollow" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;", &lt;/SPAN&gt;&lt;EM&gt;username&lt;/EM&gt;, &lt;EM&gt;password&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;###create variable for feature layer collection where feature service has 20 layers&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;flc = features.managers.FeatureLayerCollectionManager('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices6.arcgis.com%2F" rel="nofollow" target="_blank"&gt;https://services6.arcgis.com/&lt;/A&gt;&lt;EM&gt;&amp;lt;organizaionid&amp;gt;&lt;/EM&gt;/ArcGIS/rest/admin/services/&lt;EM&gt;&amp;lt;featureservicename&amp;gt;&lt;/EM&gt;/FeatureServer',mygis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Working Sample - creates view with all 20 layers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;view = flc.create_view(name="GM_copy_burnview", capabilities = 'Create,Editing,Query,Sync,Update')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failing Sample - attempts to create view with layer 14 only&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;view = flc.create_view(name="GM_copy_burnview", capabilities = 'Create,Editing,Query,Sync,Update', view_layers = [flc.layers[14]])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:25:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804335#M2214</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-08-09T14:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804336#M2215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Hi Mitch,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;This sample works fine:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;usuario&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;contraseña&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
servicio &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;idProduccion&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;## idProduccion is the itemid of the hosted feature service&lt;/SPAN&gt;
flc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fromitem&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;servicio&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Delete view if it exists&lt;/SPAN&gt;
items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;nombreVista&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; items&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; vistaExistente &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;items&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;## this is how you can get the itemid of a hosted feature service&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; vistaExistente&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;delete&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Crear vista&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;
vista &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;create_view&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;name&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;nombreVista&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; spatial_reference&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; extent&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; allow_schema_changes&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; updateable&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; capabilities&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Query, Update'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; view_layers&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;## 1 and 3 are the layers in the hosted feature service that you want to include in the view, you define a list with all the layers you want in&lt;/SPAN&gt;

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xabier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804336#M2215</guid>
      <dc:creator>XabierVelasco_Echeverría</dc:creator>
      <dc:date>2021-12-12T09:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804337#M2216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Xabier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, that sample does not work for me. I get the error below. What modules are importing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NameError: name 'arcgis' is not defined&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 16:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804337#M2216</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-08-14T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature layer view in AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804338#M2217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should import the arcgis module (ArcGIS Python API):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold;"&gt;import arcgis
from&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0000ff; font-weight: bold;"&gt;arcgis.gis&lt;/SPAN&gt; &lt;SPAN class="" style="color: #008000; font-weight: bold;"&gt;import&lt;/SPAN&gt; &lt;SPAN class=""&gt;GIS&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Xabier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-create-a-feature-layer-view-in-agol/m-p/804338#M2217</guid>
      <dc:creator>XabierVelasco_Echeverría</dc:creator>
      <dc:date>2021-12-12T09:21:46Z</dc:date>
    </item>
  </channel>
</rss>

