<?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: customize widget from script in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/customize-widget-from-script/m-p/522415#M1456</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/253223"&gt;@bzahran&lt;/a&gt;, I think it might be an issue with the structure of the results. Check the examples here -&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/widgets/create-a-custom-widget-using-an-automation-script/widget-type-examples-using-automation-scripts#id6a1643b4-d5ab-495f-9ef0-5f1576f36695_id06bdbbeb-dbef-4d59-a89d-f9796b5c23f3" target="_blank"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/widgets/create-a-custom-widget-using-an-automation-script/widget-type-examples-using-automation-scripts#id6a1643b4-d5ab-495f-9ef0-5f1576f36695_id06bdbbeb-dbef-4d59-a89d-f9796b5c23f3&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think to process most chart based results. It needs to be list of dictionaries. Like the example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;data = [
    {"name": "2018-04-12", "data": [10]},
    {"name": "2018-04-10", "data": [3]},
    {"name": "2018-04-17", "data": [1]},
    {"name": "2018-04-16", "data": [34]},
    {"name": "2018-04-15", "data": [17]}
]
demisto.results(json.dumps(data))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 08:20:39 GMT</pubDate>
    <dc:creator>jfernandes1</dc:creator>
    <dc:date>2022-11-25T08:20:39Z</dc:date>
    <item>
      <title>customize widget from script</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/customize-widget-from-script/m-p/522242#M1447</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have developed automation to get all the similar incident names with dictionary return results that have ID and incident name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once I call the script from the widget, pie, table, or any of them, I get the following error; anyone can help !!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bzahran_0-1669213017794.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/45613i0F1518D7113F0776/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="bzahran_0-1669213017794.png" alt="bzahran_0-1669213017794.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 14:17:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/customize-widget-from-script/m-p/522242#M1447</guid>
      <dc:creator>bzahran</dc:creator>
      <dc:date>2022-11-23T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: customize widget from script</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/customize-widget-from-script/m-p/522378#M1452</link>
      <description>&lt;P&gt;Hi, well I don't know how the script written, but you can use as an example the scripts in the "integrations and incident health check" pack.&lt;/P&gt;
&lt;P&gt;In the pack, you have multiple example of how you should return the data for the widget (/dynamic sections).&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 14:40:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/customize-widget-from-script/m-p/522378#M1452</guid>
      <dc:creator>YAltmann</dc:creator>
      <dc:date>2022-11-24T14:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: customize widget from script</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/customize-widget-from-script/m-p/522415#M1456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/253223"&gt;@bzahran&lt;/a&gt;, I think it might be an issue with the structure of the results. Check the examples here -&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/widgets/create-a-custom-widget-using-an-automation-script/widget-type-examples-using-automation-scripts#id6a1643b4-d5ab-495f-9ef0-5f1576f36695_id06bdbbeb-dbef-4d59-a89d-f9796b5c23f3" target="_blank"&gt;https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/widgets/create-a-custom-widget-using-an-automation-script/widget-type-examples-using-automation-scripts#id6a1643b4-d5ab-495f-9ef0-5f1576f36695_id06bdbbeb-dbef-4d59-a89d-f9796b5c23f3&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think to process most chart based results. It needs to be list of dictionaries. Like the example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;data = [
    {"name": "2018-04-12", "data": [10]},
    {"name": "2018-04-10", "data": [3]},
    {"name": "2018-04-17", "data": [1]},
    {"name": "2018-04-16", "data": [34]},
    {"name": "2018-04-15", "data": [17]}
]
demisto.results(json.dumps(data))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 08:20:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/customize-widget-from-script/m-p/522415#M1456</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-11-25T08:20:39Z</dc:date>
    </item>
  </channel>
</rss>

