<?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 add actions in new StoryMaps using python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-actions-in-new-storymaps-using-python/m-p/1640737#M11560</link>
    <description>&lt;P&gt;&amp;nbsp;If we manually create a new storymap, and add actions to change an embedded map, I see in the json payload data for the storymap, that the actions are in the "actions" block directly beneath the storymap node, not under the sidecar, and it looks like&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"actions": [
    {
      "origin": "n-IPPSV5",
      "trigger": "InlineAction_Apply",
      "target": "n-92JAf6",
      "event": "WebMap_UpdateData",
      "data": {
        "actionId": "a-eu1786",
[...]
      }
    },&lt;/LI-CODE&gt;&lt;P&gt;And the markup used to trigger the action (changing visible layers in an embedded map), looks like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;span data-action-type="text-style-action" id="a-eu1786"&amp;gt;Noosa catchment&amp;lt;/span&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In the old storymap, the action details are stored beneath the section node in a contentAction node, and the markup looks like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;a data-storymaps="MJ-ACTION-1510555308265" data-storymaps-type="media"&amp;gt;&amp;lt;span style="color: rgb(0, 255, 255);"&amp;gt;geology of the Noosa catchment&amp;lt;/span&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I can successfully retrieve this data, i just need to figure out how to add it to the new storymap, eg. should I just add such markup directly, after adding an appropriate action to the sidecar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Aug 2025 02:11:24 GMT</pubDate>
    <dc:creator>wetlandsuser</dc:creator>
    <dc:date>2025-08-11T02:11:24Z</dc:date>
    <item>
      <title>How to add actions in new StoryMaps using python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-actions-in-new-storymaps-using-python/m-p/1640725#M11559</link>
      <description>&lt;P&gt;I am trying to convert some existing storymaps, and I'm using the converted posted here;&amp;nbsp;&lt;A href="https://www.arcgis.com/home/item.html?id=bc35e93d5d374e1a9c3583be0cc9f1d7#overview" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=bc35e93d5d374e1a9c3583be0cc9f1d7#overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This converter works, but it strips any html markup in text, and notably it strips story actions. I'm trying to add these back using the python API, but am not finding any example code that shows how. I think the correct approach is to add actions to a slide using the sidecar.add_action, then linking to that action somehow using an anchor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does there exist some example code that shows how to add story actions using the python api?&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the old storymaps, the actions links look like&amp;nbsp;&amp;lt;a data-storymaps="MJ-ACTION-1510194574574" data-storymaps-type="media" href="#"&amp;gt;Noosa catchment&amp;lt;/a&amp;gt;. One example link is show in the "Noosa Catchment" page in this storymap:&amp;nbsp;&lt;A href="https://qgsp.maps.arcgis.com/apps/MapJournal/index.html?appid=309cfcd2d24f4dbb82241200134d08be" target="_blank"&gt;https://qgsp.maps.arcgis.com/apps/MapJournal/index.html?appid=309cfcd2d24f4dbb82241200134d08be&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 00:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-actions-in-new-storymaps-using-python/m-p/1640725#M11559</guid>
      <dc:creator>wetlandsuser</dc:creator>
      <dc:date>2025-08-11T00:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to add actions in new StoryMaps using python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-actions-in-new-storymaps-using-python/m-p/1640737#M11560</link>
      <description>&lt;P&gt;&amp;nbsp;If we manually create a new storymap, and add actions to change an embedded map, I see in the json payload data for the storymap, that the actions are in the "actions" block directly beneath the storymap node, not under the sidecar, and it looks like&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"actions": [
    {
      "origin": "n-IPPSV5",
      "trigger": "InlineAction_Apply",
      "target": "n-92JAf6",
      "event": "WebMap_UpdateData",
      "data": {
        "actionId": "a-eu1786",
[...]
      }
    },&lt;/LI-CODE&gt;&lt;P&gt;And the markup used to trigger the action (changing visible layers in an embedded map), looks like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;span data-action-type="text-style-action" id="a-eu1786"&amp;gt;Noosa catchment&amp;lt;/span&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;In the old storymap, the action details are stored beneath the section node in a contentAction node, and the markup looks like:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;a data-storymaps="MJ-ACTION-1510555308265" data-storymaps-type="media"&amp;gt;&amp;lt;span style="color: rgb(0, 255, 255);"&amp;gt;geology of the Noosa catchment&amp;lt;/span&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;I can successfully retrieve this data, i just need to figure out how to add it to the new storymap, eg. should I just add such markup directly, after adding an appropriate action to the sidecar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 02:11:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-actions-in-new-storymaps-using-python/m-p/1640737#M11560</guid>
      <dc:creator>wetlandsuser</dc:creator>
      <dc:date>2025-08-11T02:11:24Z</dc:date>
    </item>
  </channel>
</rss>

