<?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: Integration - Referencing Input from previous automation in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/484140#M783</link>
    <description>&lt;P&gt;totally appreciate the response C. I think i was confused between inputs and attributes. Once i added the argument, i now see the default value. So making progress.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am seeing the default value for the argument instead of the value that was returned by the previous automation, i'm either not referencing the right var or it isn't set up to be returned to the next autimation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output on the previous automation has an output -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tripper_0-1651496799563.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40748i7E18AA0FC5522846/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Tripper_0-1651496799563.png" alt="Tripper_0-1651496799563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do I need to have the file as part of the reference?&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 13:07:14 GMT</pubDate>
    <dc:creator>Tripper</dc:creator>
    <dc:date>2022-05-02T13:07:14Z</dc:date>
    <item>
      <title>Integration - Referencing Input from previous automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/483868#M776</link>
      <description>&lt;P&gt;Hey there. I have what I believe to be a python syntax question. We have a playbook with two automations. The first downloads a file, which is successful. The first automation has an output of the EntryID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second automation needs to use the entryID to get the file that was just downloaded it and perform some tasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally the question; What is the syntax in the second automation to reference the input entryID?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In powershell it looks like: $entryId= $demisto.Args()["EntryId"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the python equivalent?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal of the second automation is retrieve the downloaded csv, parse it and then insert data into the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We’ve tried:&lt;/P&gt;&lt;P&gt;params=demisto.params() - error: params doesn't exist&lt;/P&gt;&lt;P&gt;args=demisto.args() -&amp;nbsp;error: args doesn't exist&lt;/P&gt;&lt;P&gt;demisto.params()["EntryId"] -&amp;nbsp;error: params doesn't exist&lt;/P&gt;&lt;P&gt;result = demisto.ExecuteCommand('getFilePath', @{id = entryId})[0]["Contents"]["path"] - i cant get to the entry id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We’ve reviewed:&lt;/P&gt;&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/integrations/code-conventions" target="_blank"&gt;https://xsoar.pan.dev/docs/integrations/code-conventions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://xsoar.pan.dev/docs/reference/api/common-server-python" target="_blank"&gt;https://xsoar.pan.dev/docs/reference/api/common-server-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;System scripts for examples&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our Playbook:&lt;/P&gt;&lt;P&gt;Automation 1 Inputs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tripper_0-1651263192113.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40683i9CDF96595ADE1542/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Tripper_0-1651263192113.png" alt="Tripper_0-1651263192113.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;Outputs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tripper_1-1651263192116.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40685iD45823589C7BB2E3/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Tripper_1-1651263192116.png" alt="Tripper_1-1651263192116.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;Automation 2&lt;/P&gt;&lt;P&gt;Input&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tripper_2-1651263192118.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40684iAEE46328F7E2FC39/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Tripper_2-1651263192118.png" alt="Tripper_2-1651263192118.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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 20:14:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/483868#M776</guid>
      <dc:creator>Tripper</dc:creator>
      <dc:date>2022-04-29T20:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Integration - Referencing Input from previous automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/483872#M777</link>
      <description>&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="Screen Shot 2022-04-29 at 3.22.43 PM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40686i3BEF110A78AFE9FE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-04-29 at 3.22.43 PM.png" alt="Screen Shot 2022-04-29 at 3.22.43 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;to reference an input in python, you would use demisto.args().get('EntryId'). Job_softwaredate_Update_Trip need to have an argument called 'EntryId' on it.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 20:27:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/483872#M777</guid>
      <dc:creator>cstone</dc:creator>
      <dc:date>2022-04-29T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Integration - Referencing Input from previous automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/484140#M783</link>
      <description>&lt;P&gt;totally appreciate the response C. I think i was confused between inputs and attributes. Once i added the argument, i now see the default value. So making progress.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am seeing the default value for the argument instead of the value that was returned by the previous automation, i'm either not referencing the right var or it isn't set up to be returned to the next autimation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output on the previous automation has an output -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tripper_0-1651496799563.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40748i7E18AA0FC5522846/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Tripper_0-1651496799563.png" alt="Tripper_0-1651496799563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do I need to have the file as part of the reference?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 13:07:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/484140#M783</guid>
      <dc:creator>Tripper</dc:creator>
      <dc:date>2022-05-02T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Integration - Referencing Input from previous automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/484142#M784</link>
      <description>&lt;P&gt;something i just noticed is in the warroom message for the download step, EntryID isn't in the list of outputs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tripper_1-1651497157879.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40749iEFFEE6148E845C20/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Tripper_1-1651497157879.png" alt="Tripper_1-1651497157879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is in the output list for the download step just like the rest that are being displayed above step. However i can't reference any of the file attributes -&amp;nbsp;demisto.results(demisto.args().get('size'))&lt;BR /&gt;demisto.results(demisto.args().get('Type'))&lt;BR /&gt;demisto.results(demisto.args())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only value in args is the default value i set for the attribute. So the values/outputs from the download step, are not being passed to the next step. Not sure what I am doing wrong or the thing to post to help you to help me . . .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 14:44:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/484142#M784</guid>
      <dc:creator>Tripper</dc:creator>
      <dc:date>2022-05-02T14:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Integration - Referencing Input from previous automation</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/484173#M785</link>
      <description>&lt;P&gt;figured out what i was missing. obviously I am new to demisto/xsoar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had outputs and inputs/attributes listed. the piece i was missing was mapping the inputs to outputs in the pervious step.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tripper_0-1651504432543.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/40752i4C812E9C7573ED39/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Tripper_0-1651504432543.png" alt="Tripper_0-1651504432543.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 15:14:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/integration-referencing-input-from-previous-automation/m-p/484173#M785</guid>
      <dc:creator>Tripper</dc:creator>
      <dc:date>2022-05-02T15:14:36Z</dc:date>
    </item>
  </channel>
</rss>

