<?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 Demisto :   How to display List of Messages in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/demisto-how-to-display-list-of-messages/m-p/358194#M364</link>
    <description>&lt;P&gt;Hi Team, I am using&amp;nbsp;&lt;STRONG&gt;create_incident&lt;/STRONG&gt; API to create incidents. Below is the sample code. I can create an incident when I use "&lt;SPAN&gt;messages&lt;/SPAN&gt;" as String.&amp;nbsp; Basically, this is&amp;nbsp;custom_fields and its data vary from incident to incident.&amp;nbsp; Some incidents may have&amp;nbsp; 0 messages in the string array or some may have 10 messages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------&lt;/P&gt;&lt;PRE&gt;api_instance = demisto_client.configure(&lt;SPAN&gt;base_url&lt;/SPAN&gt;=base_url, &lt;SPAN&gt;api_key&lt;/SPAN&gt;=api_key, &lt;SPAN&gt;debug&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;verify_ssl&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;BR /&gt;create_incident_request = demisto_client.demisto_api.CreateIncidentRequest()&lt;BR /&gt;&lt;BR /&gt;create_incident_request.name = &lt;SPAN&gt;'Sample1 Incident with custom fields'&lt;BR /&gt;&lt;/SPAN&gt;create_incident_request.type = &lt;SPAN&gt;'Access'&lt;BR /&gt;&lt;/SPAN&gt;create_incident_request.owner = &lt;SPAN&gt;'Admin'&lt;BR /&gt;&lt;/SPAN&gt;create_incident_request.custom_fields= {&lt;SPAN&gt;'src'&lt;/SPAN&gt;: &lt;SPAN&gt;'1.1.1.1'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'dest'&lt;/SPAN&gt;: &lt;SPAN&gt;'192.168.1.1'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'malwarefamily'&lt;/SPAN&gt;: &lt;SPAN&gt;'Trojan.Generic'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'filehash'&lt;/SPAN&gt;: &lt;SPAN&gt;'142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'vendorproduct'&lt;/SPAN&gt;: &lt;SPAN&gt;'Secure Producnt'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;STRONG&gt;'messages':&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;"[{'messageid': 1, 'messagedetails':'First Message'}, {'messageid': 2, 'messagedetails':'Second Message'}]"&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;    api_response = api_instance.create_incident(&lt;SPAN&gt;create_incident_request&lt;/SPAN&gt;=create_incident_request)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(api_response)&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;ApiException &lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Exception when calling DefaultApi-&amp;gt;create_incident: %s&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;% e)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any field type I can choose or Any way I can show these&amp;nbsp;custom_fields &lt;STRONG&gt;messages&lt;/STRONG&gt; in the form of a table on the incident screen?&amp;nbsp;&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="Screenshot from 2020-10-22 22-29-37.png" style="width: 746px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/28325iC00595DA0DA6E56A/image-dimensions/746x420/is-moderation-mode/true?v=v2" width="746" height="420" role="button" title="Screenshot from 2020-10-22 22-29-37.png" alt="Screenshot from 2020-10-22 22-29-37.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 17:20:13 GMT</pubDate>
    <dc:creator>JSannake</dc:creator>
    <dc:date>2020-10-22T17:20:13Z</dc:date>
    <item>
      <title>Demisto :   How to display List of Messages</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/demisto-how-to-display-list-of-messages/m-p/358194#M364</link>
      <description>&lt;P&gt;Hi Team, I am using&amp;nbsp;&lt;STRONG&gt;create_incident&lt;/STRONG&gt; API to create incidents. Below is the sample code. I can create an incident when I use "&lt;SPAN&gt;messages&lt;/SPAN&gt;" as String.&amp;nbsp; Basically, this is&amp;nbsp;custom_fields and its data vary from incident to incident.&amp;nbsp; Some incidents may have&amp;nbsp; 0 messages in the string array or some may have 10 messages.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------&lt;/P&gt;&lt;PRE&gt;api_instance = demisto_client.configure(&lt;SPAN&gt;base_url&lt;/SPAN&gt;=base_url, &lt;SPAN&gt;api_key&lt;/SPAN&gt;=api_key, &lt;SPAN&gt;debug&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;verify_ssl&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;BR /&gt;create_incident_request = demisto_client.demisto_api.CreateIncidentRequest()&lt;BR /&gt;&lt;BR /&gt;create_incident_request.name = &lt;SPAN&gt;'Sample1 Incident with custom fields'&lt;BR /&gt;&lt;/SPAN&gt;create_incident_request.type = &lt;SPAN&gt;'Access'&lt;BR /&gt;&lt;/SPAN&gt;create_incident_request.owner = &lt;SPAN&gt;'Admin'&lt;BR /&gt;&lt;/SPAN&gt;create_incident_request.custom_fields= {&lt;SPAN&gt;'src'&lt;/SPAN&gt;: &lt;SPAN&gt;'1.1.1.1'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'dest'&lt;/SPAN&gt;: &lt;SPAN&gt;'192.168.1.1'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'malwarefamily'&lt;/SPAN&gt;: &lt;SPAN&gt;'Trojan.Generic'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'filehash'&lt;/SPAN&gt;: &lt;SPAN&gt;'142b638c6a60b60c7f9928da4fb85a5a8e1422a9ffdc9ee49e17e56ccca9cf6e'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;'vendorproduct'&lt;/SPAN&gt;: &lt;SPAN&gt;'Secure Producnt'&lt;/SPAN&gt;,&lt;BR /&gt;&lt;STRONG&gt;'messages':&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;"[{'messageid': 1, 'messagedetails':'First Message'}, {'messageid': 2, 'messagedetails':'Second Message'}]"&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;    api_response = api_instance.create_incident(&lt;SPAN&gt;create_incident_request&lt;/SPAN&gt;=create_incident_request)&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(api_response)&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;ApiException &lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Exception when calling DefaultApi-&amp;gt;create_incident: %s&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;% e)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any field type I can choose or Any way I can show these&amp;nbsp;custom_fields &lt;STRONG&gt;messages&lt;/STRONG&gt; in the form of a table on the incident screen?&amp;nbsp;&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="Screenshot from 2020-10-22 22-29-37.png" style="width: 746px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/28325iC00595DA0DA6E56A/image-dimensions/746x420/is-moderation-mode/true?v=v2" width="746" height="420" role="button" title="Screenshot from 2020-10-22 22-29-37.png" alt="Screenshot from 2020-10-22 22-29-37.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 17:20:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/demisto-how-to-display-list-of-messages/m-p/358194#M364</guid>
      <dc:creator>JSannake</dc:creator>
      <dc:date>2020-10-22T17:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Demisto :   How to display List of Messages</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/demisto-how-to-display-list-of-messages/m-p/367151#M408</link>
      <description>&lt;P&gt;Hi JSannake,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you have a query for the XSOAR community. I would recommend posting this inquiry in their &lt;A href="https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/bd-p/Cortex_XSOAR_Discussions" target="_self"&gt;Live Community&lt;/A&gt; section.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 21:10:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/demisto-how-to-display-list-of-messages/m-p/367151#M408</guid>
      <dc:creator>gjenkins</dc:creator>
      <dc:date>2020-12-03T21:10:29Z</dc:date>
    </item>
  </channel>
</rss>

