<?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: Avoid empty returns in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/avoid-empty-returns/m-p/413191#M240</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;By default if you query for something that wasn't found- it won't be written to the context, it is like this in pretty much all the integrations,&lt;BR /&gt;the&amp;nbsp;&lt;SPAN&gt;Cherwell result should&amp;nbsp;include the host name which you can use to verify if you got anything back regarding that host,&lt;BR /&gt;&lt;/SPAN&gt;for example if you have an input of 10 hosts, but only some returned data from&amp;nbsp;&lt;SPAN&gt;Cherwell; you can have a task\playbook that will loop the input host names one by one, and will check if it exists in the&amp;nbsp;Cherwell response, if so it will write the data to the other DB, if not it will continue to the next one,&lt;BR /&gt;&lt;/SPAN&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 08:51:12 GMT</pubDate>
    <dc:creator>gfilippov</dc:creator>
    <dc:date>2021-06-15T08:51:12Z</dc:date>
    <item>
      <title>Avoid empty returns</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/avoid-empty-returns/m-p/386099#M125</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Playbook I run into an issue with empty returns.&lt;/P&gt;&lt;P&gt;My Playbook requests Cherwell with several hosts in an array: ["server-A","server-B"]&lt;/P&gt;&lt;P&gt;In Cherwell, "server-B" does not exist, so I do see that in the "Result Tab" of the Task, but the Output is only from the one Host (server-A), which is in the Cherwell DB.&lt;/P&gt;&lt;P&gt;The reason is, that I have to fill out later some other DB. And they fill me in both Servers (server-A and server-B) the same one content from Cherwell.&lt;/P&gt;&lt;P&gt;How do I avoid "empty" fields?&lt;/P&gt;&lt;P&gt;I'm looking for something like (If output = "no result" then ...)&lt;/P&gt;&lt;P&gt;But this must happen in the Cherwell-Task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To understand:&lt;/P&gt;&lt;P&gt;Cherwell-Task:&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ["server-A","server-B"]&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; dbot request server-A:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a Table with contents of server-A&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; dbot request server-B:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "no results"&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;DIV class="five wide break-word column task-details-outputs-key"&gt;&amp;nbsp; &amp;nbsp; Cherwell.QueryResults [{&amp;nbsp;"stuff from server-A" }]&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next Task I see:&lt;/P&gt;&lt;P&gt;for [{"server-A","server-B"}] insert [{ cherwell-output }]&lt;/P&gt;&lt;P&gt;and cherwell-output contains only info from one server (server-A)&lt;/P&gt;&lt;P&gt;and this Task inserts the content of server-A in both targets (server-A and server-B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How may I bring this "no entry" into this whole loop?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope my question is clear... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:37:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/avoid-empty-returns/m-p/386099#M125</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-02-16T10:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid empty returns</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/avoid-empty-returns/m-p/413191#M240</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;By default if you query for something that wasn't found- it won't be written to the context, it is like this in pretty much all the integrations,&lt;BR /&gt;the&amp;nbsp;&lt;SPAN&gt;Cherwell result should&amp;nbsp;include the host name which you can use to verify if you got anything back regarding that host,&lt;BR /&gt;&lt;/SPAN&gt;for example if you have an input of 10 hosts, but only some returned data from&amp;nbsp;&lt;SPAN&gt;Cherwell; you can have a task\playbook that will loop the input host names one by one, and will check if it exists in the&amp;nbsp;Cherwell response, if so it will write the data to the other DB, if not it will continue to the next one,&lt;BR /&gt;&lt;/SPAN&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 08:51:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/avoid-empty-returns/m-p/413191#M240</guid>
      <dc:creator>gfilippov</dc:creator>
      <dc:date>2021-06-15T08:51:12Z</dc:date>
    </item>
  </channel>
</rss>

