<?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: automation script to take password in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-script-to-take-password/m-p/546752#M2251</link>
    <description>&lt;P&gt;Hello Sig_9,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are making a call outside the system, we recommend creating an integration since they are made for this purpose. Automations are more for internal calls and other scripts that don't need to go outside XSOAR. You should be able to repurpose the code you have created and have the password field work properly with an integration.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 16:29:33 GMT</pubDate>
    <dc:creator>Ivetto</dc:creator>
    <dc:date>2023-06-21T16:29:33Z</dc:date>
    <item>
      <title>automation script to take password</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-script-to-take-password/m-p/545113#M2217</link>
      <description>&lt;P&gt;I'm attempting to write an automation that takes a user password.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then sends an api call containing that password, but when I enable the mandatory sensitive options on the automation script. The API call I wrote no longer runs. Are there any examples of passing a password from the mandatory sensitive box to an automation script?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 15:36:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-script-to-take-password/m-p/545113#M2217</guid>
      <dc:creator>Sig_9</dc:creator>
      <dc:date>2023-06-07T15:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: automation script to take password</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-script-to-take-password/m-p/546752#M2251</link>
      <description>&lt;P&gt;Hello Sig_9,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are making a call outside the system, we recommend creating an integration since they are made for this purpose. Automations are more for internal calls and other scripts that don't need to go outside XSOAR. You should be able to repurpose the code you have created and have the password field work properly with an integration.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 16:29:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-script-to-take-password/m-p/546752#M2251</guid>
      <dc:creator>Ivetto</dc:creator>
      <dc:date>2023-06-21T16:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: automation script to take password</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-script-to-take-password/m-p/546867#M2259</link>
      <description>&lt;P&gt;I did eventually figure it out thank you. Normally, ideally this is what I understand needs to be done, but I'm new to xsoar and didn't have plans to expand the api calls beyond this one use case. For this use case&lt;/P&gt;
&lt;P&gt;set the argument in this call we'll call it 'foo', in the script settings selecting sensitive.&lt;/P&gt;
&lt;P&gt;using argument name you chose in the arguments settings&lt;/P&gt;
&lt;P&gt;params = demisto.args()&lt;/P&gt;
&lt;P&gt;bar = str(params.get('foo', {}))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The key is your argument name inside of settings is what you get with params.get(). This may seem obvious, but it's not initially readily apparent. Especially on a first read of the code conventions docs.&amp;nbsp;&lt;A title="coding conventions(credentials)" href="https://xsoar.pan.dev/docs/integrations/code-conventions#credentials" target="_self"&gt;https://xsoar.pan.dev/docs/integrations/code-conventions#credentials&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 14:13:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/automation-script-to-take-password/m-p/546867#M2259</guid>
      <dc:creator>Sig_9</dc:creator>
      <dc:date>2023-06-22T14:13:31Z</dc:date>
    </item>
  </channel>
</rss>

