<?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: add layer to web map with standalone table don't work in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1375092#M9589</link>
    <description>&lt;P&gt;Can you try &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html#arcgis.mapping.WebMap.add_table" target="_self"&gt;WebMap.add_table()&lt;/A&gt;? It works basically the same way, but it's intended for tables.&lt;/P&gt;&lt;P&gt;You'll need to change your code a bit and use the id for the table instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 20:33:29 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2024-01-26T20:33:29Z</dc:date>
    <item>
      <title>add layer to web map with standalone table don't work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1374853#M9587</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using ArcGIS API for python, I'm trying to add layer that contain standalone table to a list of webmap in my organization programmatically but don't work.&lt;/P&gt;&lt;P&gt;When I execute the method to add a mapservice layer to webmap, just add normal feature class layer, not standalone table.&lt;/P&gt;&lt;P&gt;There are any way to avoid that behavior or some workaround ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;maintenance_webmap = "webmap id"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;mapa_consultas = gis.content.get(maintenance_webmap)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;web_map_obj = WebMap(mapa_consultas)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;maintenance_layer = gis.content.get(maintenance_layer_id)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;web_map_obj.add_layer(maintenance_layer, options={'title':maintenance_layer_title})&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 15:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1374853#M9587</guid>
      <dc:creator>RenatoTeixeira1</dc:creator>
      <dc:date>2024-01-26T15:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: add layer to web map with standalone table don't work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1375092#M9589</link>
      <description>&lt;P&gt;Can you try &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html#arcgis.mapping.WebMap.add_table" target="_self"&gt;WebMap.add_table()&lt;/A&gt;? It works basically the same way, but it's intended for tables.&lt;/P&gt;&lt;P&gt;You'll need to change your code a bit and use the id for the table instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 20:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1375092#M9589</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-01-26T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: add layer to web map with standalone table don't work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1375220#M9590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/370469"&gt;@RenatoTeixeira1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.mapping import WebMap
from arcgis.features import Table

## Access AGOL
agol = GIS("home")

## Access the WebMap Item
wm_item = agol.content.get("WEBMAP_ITEM_ID")

## Create a WebMap object from WebMp Item
webmap = WebMap(wm_item)

## Access the Feature Service
table_item = agol.content.get("FS_ITEM_ID")

## Create a Table object from the Feature Service / Table Service Item
## make sure the grab the correct table using the ID, 0 is used in the example below
tbl = Table.fromitem(table_item, 0)

## Add the Table to the WebMap
webmap.add_table(tbl)

## Update and save the WebMap
webmap.update()&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 28 Jan 2024 11:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1375220#M9590</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-01-28T11:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: add layer to web map with standalone table don't work</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1375790#M9595</link>
      <description>&lt;P&gt;Works perfectly, thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 05:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-layer-to-web-map-with-standalone-table-don-t/m-p/1375790#M9595</guid>
      <dc:creator>RenatoTeixeira1</dc:creator>
      <dc:date>2024-01-30T05:07:18Z</dc:date>
    </item>
  </channel>
</rss>

