<?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: Can't Append strings into incident.Hostnames in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-t-append-strings-into-incident-hostnames/m-p/574447#M3019</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was grabbing both the fields thus the other variable setted worked. But I found the solution and it goes along with your lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="itemizedlist"&gt;
&lt;LI class="listitem"&gt;
&lt;P&gt;Multi select / Array: Includes two options a) Multi select from a pre-filled list b) An empty array field for the user to add one or more values as a comma-separated list.&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.6/Cortex-XSOAR-Administrator-Guide/Incident-Fields" target="_self"&gt;XSOAR Incident Fields&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So not only I need to stringify, I need to append them comma separated!&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="FOtero_0-1706180746358.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56869i7850D9A920315180/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FOtero_0-1706180746358.png" alt="FOtero_0-1706180746358.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Fer&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 11:05:55 GMT</pubDate>
    <dc:creator>F.Otero</dc:creator>
    <dc:date>2024-01-25T11:05:55Z</dc:date>
    <item>
      <title>Can't Append strings into incident.Hostnames</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-t-append-strings-into-incident-hostnames/m-p/574324#M3015</link>
      <description>&lt;P&gt;Hi all!,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having issues trying to update the incident.Hostnames field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;What I want to do:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'm receiving an alert which involve different hostnamed, for the sake of simplicity and to track easier the incidents we want to add the hostnames to the incidentHostnames field:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FOtero_0-1706113371425.png" style="width: 800px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56839iD2723EC282EC5D76/image-dimensions/800x54/is-moderation-mode/true?v=v2" width="800" height="54" role="button" title="FOtero_0-1706113371425.png" alt="FOtero_0-1706113371425.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As it is an array there shouldn't be any issue but when we perform.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;How are we doing it&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I'm using the setIncident built in Integration&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FOtero_1-1706113684985.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56840i3247425EE896D907/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FOtero_1-1706113684985.png" alt="FOtero_1-1706113684985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The result of the transformer is the expected an array with two hosts:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FOtero_2-1706113857656.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56841i53EEC2FFD1FA23DA/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FOtero_2-1706113857656.png" alt="FOtero_2-1706113857656.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the incident field shows only the first one:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FOtero_3-1706113963629.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56842iAD61E47B98915280/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FOtero_3-1706113963629.png" alt="FOtero_3-1706113963629.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We've also stored the same variable, obtained using the same transformer in a context variable using the Set built in automation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FOtero_4-1706114171884.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56843i7D82DBC3BFBF43CA/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FOtero_4-1706114171884.png" alt="FOtero_4-1706114171884.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And the result is as expected:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FOtero_5-1706114247117.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56844i5CA6606CF3F5ED05/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FOtero_5-1706114247117.png" alt="FOtero_5-1706114247117.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Expected Result&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The expected result is to have in incident.Hostnames the same as we have in popo, an array with both of the hostnames.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;What are we getting&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;That, despite the Incident.Hostnames field is defined as an array, we are not able to update it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot in advanced!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Fer&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 16:41:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-t-append-strings-into-incident-hostnames/m-p/574324#M3015</guid>
      <dc:creator>F.Otero</dc:creator>
      <dc:date>2024-01-24T16:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Append strings into incident.Hostnames</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-t-append-strings-into-incident-hostnames/m-p/574334#M3016</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is potentially because the Get field transformer is only grabbing the first element of the array. Can you please try adding the &lt;STRONG&gt;StringifyArray&lt;/STRONG&gt; transformer after the Get field transformer?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should resolve the issue and append both of the elements in the hostnames incident field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:40:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-t-append-strings-into-incident-hostnames/m-p/574334#M3016</guid>
      <dc:creator>jqamruddin</dc:creator>
      <dc:date>2024-01-24T17:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Append strings into incident.Hostnames</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-t-append-strings-into-incident-hostnames/m-p/574447#M3019</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was grabbing both the fields thus the other variable setted worked. But I found the solution and it goes along with your lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="itemizedlist"&gt;
&lt;LI class="listitem"&gt;
&lt;P&gt;Multi select / Array: Includes two options a) Multi select from a pre-filled list b) An empty array field for the user to add one or more values as a comma-separated list.&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.6/Cortex-XSOAR-Administrator-Guide/Incident-Fields" target="_self"&gt;XSOAR Incident Fields&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So not only I need to stringify, I need to append them comma separated!&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="FOtero_0-1706180746358.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/56869i7850D9A920315180/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="FOtero_0-1706180746358.png" alt="FOtero_0-1706180746358.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Fer&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 11:05:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-t-append-strings-into-incident-hostnames/m-p/574447#M3019</guid>
      <dc:creator>F.Otero</dc:creator>
      <dc:date>2024-01-25T11:05:55Z</dc:date>
    </item>
  </channel>
</rss>

