<?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 Get Item ID from new Dashboard object via Python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-item-id-from-new-dashboard-object-via-python/m-p/1415658#M9943</link>
    <description>&lt;P&gt;Using ArcGIS API for Python, I've successfully created a new Dashboard object and saved it using the following code.&amp;nbsp; I can confirm the Dashboard has been created by opening it from My Content.&amp;nbsp; However, in the code, it only seems to exist as a Dashboard object.&amp;nbsp; The rest of my workflow involves gis.content.get() which requires the Item ID.&amp;nbsp; Does anyone know how I can get the Item ID from the Dashboard object?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    new_dash = Dashboard()
    new_dash.save('new_dash6')
    pprint(new_dash)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The print statement yields the Dashboard object:&lt;/P&gt;&lt;P&gt;&amp;lt;arcgis.apps.dashboard.dashboard.Dashboard object at 0x00000209EB6D66D0&amp;gt;&lt;/P&gt;&lt;P&gt;The next step would be to get the Dashboard JSON, but I need the Item ID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;new_dash_item = gis.content.get(new_dash_item_id)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 23:54:04 GMT</pubDate>
    <dc:creator>JPrescott</dc:creator>
    <dc:date>2024-04-25T23:54:04Z</dc:date>
    <item>
      <title>Get Item ID from new Dashboard object via Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-item-id-from-new-dashboard-object-via-python/m-p/1415658#M9943</link>
      <description>&lt;P&gt;Using ArcGIS API for Python, I've successfully created a new Dashboard object and saved it using the following code.&amp;nbsp; I can confirm the Dashboard has been created by opening it from My Content.&amp;nbsp; However, in the code, it only seems to exist as a Dashboard object.&amp;nbsp; The rest of my workflow involves gis.content.get() which requires the Item ID.&amp;nbsp; Does anyone know how I can get the Item ID from the Dashboard object?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    new_dash = Dashboard()
    new_dash.save('new_dash6')
    pprint(new_dash)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The print statement yields the Dashboard object:&lt;/P&gt;&lt;P&gt;&amp;lt;arcgis.apps.dashboard.dashboard.Dashboard object at 0x00000209EB6D66D0&amp;gt;&lt;/P&gt;&lt;P&gt;The next step would be to get the Dashboard JSON, but I need the Item ID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;new_dash_item = gis.content.get(new_dash_item_id)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 23:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-item-id-from-new-dashboard-object-via-python/m-p/1415658#M9943</guid>
      <dc:creator>JPrescott</dc:creator>
      <dc:date>2024-04-25T23:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Item ID from new Dashboard object via Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-item-id-from-new-dashboard-object-via-python/m-p/1415672#M9944</link>
      <description>&lt;P&gt;save returns the item, so all you have to do is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;new_dash = Dashboard()
new_dash_item = new_dash.save('new_dash6')
# do something with new_dash_item&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 01:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-item-id-from-new-dashboard-object-via-python/m-p/1415672#M9944</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-04-26T01:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get Item ID from new Dashboard object via Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-item-id-from-new-dashboard-object-via-python/m-p/1416146#M9953</link>
      <description>&lt;P&gt;Perfect, that did it, and thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 22:07:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-item-id-from-new-dashboard-object-via-python/m-p/1416146#M9953</guid>
      <dc:creator>JPrescott</dc:creator>
      <dc:date>2024-04-26T22:07:55Z</dc:date>
    </item>
  </channel>
</rss>

