<?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: Formatting an Array of Values in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/formatting-an-array-of-values/m-p/535508#M1931</link>
    <description>&lt;P&gt;I think this is SendMail automation, I was trying "&lt;SPAN&gt;SendEmailReply". I also figured out how to which is using "ArrayToCSV".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You might need it if you are CC multiple people on the same mail.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 01:23:46 GMT</pubDate>
    <dc:creator>vidurasupun</dc:creator>
    <dc:date>2023-03-23T01:23:46Z</dc:date>
    <item>
      <title>Formatting an Array of Values</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/formatting-an-array-of-values/m-p/535322#M1923</link>
      <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the context I have one key that holds multiple email values, I need to use them in my&amp;nbsp;"SendEmailReply" automation. However when I call the key as a variable in To field, it comes as an array not single object. Is there any out of the box way to format values in arrays?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My example JSON in context&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"Email":["Abc@ehd.com", "NMC@ex.com"]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected output when I call &lt;STRONG&gt;${Email}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="mailto:Abc@ehd.com," target="_blank"&gt;Abc@ehd.com,&lt;/A&gt;&amp;nbsp;NMC@ex.com&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen some custom made automation for similar activities, but I'm 100% sure there is a simple method that can solve this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 07:22:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/formatting-an-array-of-values/m-p/535322#M1923</guid>
      <dc:creator>vidurasupun</dc:creator>
      <dc:date>2023-03-22T07:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting an Array of Values</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/formatting-an-array-of-values/m-p/535398#M1927</link>
      <description>&lt;P&gt;Please forgive me, but why do you think it won't work as is?&amp;nbsp; Have you tried letting the email send and see what happens?&amp;nbsp; I only ask because I have the exact same thing and it works just fine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Task Started #43: Email Notification
!send-mail to="[\"team@company.com\",\"person1@company.com\",\"person2@company.com\",\"person3@company.com\",\"person4@company.com\"]" cc="person5@company.com" subject="DEMONSTRATION ONLY - Cryptomining Incident in EC2 Instance" body="This email is to make you aware of an ongoing situation with an EC2 instance for which you have been identified as a party of interest.  A change ticket, CHG1234567, has been opened to isolate the instance identified below.  Please contact person5@company.com if you have any questions or think you can provide information of value to this investigation.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 12:32:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/formatting-an-array-of-values/m-p/535398#M1927</guid>
      <dc:creator>Jeff.McGurk</dc:creator>
      <dc:date>2023-03-22T12:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting an Array of Values</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/formatting-an-array-of-values/m-p/535508#M1931</link>
      <description>&lt;P&gt;I think this is SendMail automation, I was trying "&lt;SPAN&gt;SendEmailReply". I also figured out how to which is using "ArrayToCSV".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You might need it if you are CC multiple people on the same mail.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 01:23:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/formatting-an-array-of-values/m-p/535508#M1931</guid>
      <dc:creator>vidurasupun</dc:creator>
      <dc:date>2023-03-23T01:23:46Z</dc:date>
    </item>
  </channel>
</rss>

