<?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: It is possible to edit the JSON Dashboard using Python? in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/1014872#M4112</link>
    <description>&lt;P&gt;I don't see this anywhere as an enhancement request but it has my vote!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 21:55:10 GMT</pubDate>
    <dc:creator>ADClark</dc:creator>
    <dc:date>2021-01-07T21:55:10Z</dc:date>
    <item>
      <title>It is possible to edit the JSON Dashboard using Python?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/378131#M2166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use a dashboards with a lot of gadgets, which are very time consuming to make.&amp;nbsp;We started using a JSON template and manipulating the code, and paste into a the Dashboard code on ArcGIS Online Assistant. Which is still time consuming.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I learned that I can edit the data of a item by using the code&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.8pt;"&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.8pt;"&gt; gis.content.get(item.id).update(item_properties="text": data)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Which data us the .JSON file. It works perfectly for Web Maps, when I use the code to replace the JSON. But it always give me an error if I try to replace the Dashboard .JSON of an existing dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="480437" class="image-1 jive-image j-img-centered j-img-original" src="https://community.esri.com/legacyfs/online/480437_pastedImage_1.png" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way, I can create web maps using the&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.8pt;"&gt;gis.content.add(item_properties="text": data)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;but when I create a dashboard, the error above appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An easy answer would be "My .JSON is invalid/broken/has errors", but if I use the code above to replace to the &lt;STRONG&gt;exact same&amp;nbsp;&lt;/STRONG&gt;json code of the current dashboard, it still changes to a functional dashboard to a broken one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe these codes are not suposed to be used on Dashboards. Then, how can I update the Dashboard Json using Python? Is there another way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/378131#M2166</guid>
      <dc:creator>Gustavo_Souza</dc:creator>
      <dc:date>2020-02-06T16:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to edit the JSON Dashboard using Python?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/378132#M2167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gustavo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;EM&gt;It is possible to edit the JSON Dashboard using Python?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a supported workflow. Sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the workflow you described, please vote for this enhancement request,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/14350" target="_blank"&gt;https://community.esri.com/ideas/14350&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/378132#M2167</guid>
      <dc:creator>DerekLaw</dc:creator>
      <dc:date>2021-06-22T08:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to edit the JSON Dashboard using Python?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/1014872#M4112</link>
      <description>&lt;P&gt;I don't see this anywhere as an enhancement request but it has my vote!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 21:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/1014872#M4112</guid>
      <dc:creator>ADClark</dc:creator>
      <dc:date>2021-01-07T21:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to edit the JSON Dashboard using Python?</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/1233602#M7012</link>
      <description>&lt;P&gt;You need to use item.update(data= NewJson) instead of add.(item_properties="text":data)&lt;/P&gt;&lt;P&gt;I do it in one of our dashboards as we need to dynamically update the date selectors when the data set is updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 21:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/it-is-possible-to-edit-the-json-dashboard-using/m-p/1233602#M7012</guid>
      <dc:creator>PeterMilenkovic</dc:creator>
      <dc:date>2022-11-20T21:32:00Z</dc:date>
    </item>
  </channel>
</rss>

