<?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 Automation to Print output and set tag in warroom in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-to-print-output-and-set-tag-in-warroom/m-p/548669#M2296</link>
    <description>&lt;P&gt;Trying to create an automation to print output in the warroom, which works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;print(handover)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only thing is how can I give a &lt;STRONG&gt;tag&lt;/STRONG&gt; automatically to the output in the warroom.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to give the tag "Handover" to this output for example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anymore have any idea?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jul 2023 14:57:50 GMT</pubDate>
    <dc:creator>MarcoHersbach</dc:creator>
    <dc:date>2023-07-09T14:57:50Z</dc:date>
    <item>
      <title>Automation to Print output and set tag in warroom</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-to-print-output-and-set-tag-in-warroom/m-p/548669#M2296</link>
      <description>&lt;P&gt;Trying to create an automation to print output in the warroom, which works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;print(handover)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only thing is how can I give a &lt;STRONG&gt;tag&lt;/STRONG&gt; automatically to the output in the warroom.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to give the tag "Handover" to this output for example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anymore have any idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2023 14:57:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-to-print-output-and-set-tag-in-warroom/m-p/548669#M2296</guid>
      <dc:creator>MarcoHersbach</dc:creator>
      <dc:date>2023-07-09T14:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automation to Print output and set tag in warroom</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-to-print-output-and-set-tag-in-warroom/m-p/548771#M2298</link>
      <description>&lt;P&gt;Hi there, you have two ways to achieve this.&amp;nbsp;&lt;BR /&gt;1. Use CommandResults() to return the results in your automation instead of print function. Use Script helper for all the options with CommandResults(). You will see an option to tag the results.&lt;BR /&gt;2. If you are going to ultimately run this automation in a playbook task then you can just select an option in the playbook task to tag the results automatically. You have to navigate to the details section in the playbook task and type in the tag you want the result to be tagged with.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 14:11:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-to-print-output-and-set-tag-in-warroom/m-p/548771#M2298</guid>
      <dc:creator>akoppad</dc:creator>
      <dc:date>2023-07-10T14:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automation to Print output and set tag in warroom</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-to-print-output-and-set-tag-in-warroom/m-p/548777#M2299</link>
      <description>&lt;P&gt;Hi Akoppad,&lt;BR /&gt;It's working now, was able to solve it with the following in my automation :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;# Retrieve the value of specific fields from Demisto&lt;BR /&gt;incident = demisto.incidents()[0]&lt;BR /&gt;field1 = custom_fields.get('handoversummary')&lt;BR /&gt;field2 = custom_fields.get('ongoingactionshandover')&lt;BR /&gt;field3 = custom_fields.get('handoveraction')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# Set the value of my_variable&lt;BR /&gt;my_variable = f"Handover Summary :\n {field1}\n\n Ongoing actions :\n {field2}\n\n Handover action :\n {field3}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# Update the War Room with the variable value and custom tag&lt;BR /&gt;demisto.results({&lt;BR /&gt;'Type': entryTypes['note'],&lt;BR /&gt;'ContentsFormat': formats['markdown'],&lt;BR /&gt;'Contents': '## handover \n\n {}\n'.format(my_variable),&lt;BR /&gt;'Tags': ['Handover']&lt;BR /&gt;})&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 14:16:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-to-print-output-and-set-tag-in-warroom/m-p/548777#M2299</guid>
      <dc:creator>MarcoHersbach</dc:creator>
      <dc:date>2023-07-10T14:16:56Z</dc:date>
    </item>
  </channel>
</rss>

