<?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 Add manual input to a query on a button? in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/add-manual-input-to-a-query-on-a-button/m-p/535042#M1916</link>
    <description>&lt;P&gt;Greetings all.&lt;BR /&gt;I have this situation I am trying to resolve, but can't find a solution.&lt;BR /&gt;&lt;BR /&gt;I have a dynamic section in a layout, in which I want to add a button. When clicked, this button should run a query, but it should first ask for a user input, which needs to be a part of the query.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;I want a button to run a Azure Log Analytics query.&lt;BR /&gt;I make the button, the azure-log-analytics-execute-query button script.&lt;BR /&gt;Say the query should be:&lt;BR /&gt;CommonSecurityLog&lt;BR /&gt;| where SourceIP == "USERINPUT"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the execution would need to be:&lt;BR /&gt;1: User clicks button&lt;BR /&gt;2: Button asks the user for the IP to use.&lt;BR /&gt;3: User provides the input (IP), and the input replaces the "USERINPUT" field in the query.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any smart solutions to this?&lt;BR /&gt;Only reasonable alternative I have come up with, is to have another button which uses the setIncident script, sets the user input as a context field, and then the query uses that context field as the input.&lt;BR /&gt;A python script could do this too, but the end result would be the same (?), as the script would also use a context field for input.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 10:51:56 GMT</pubDate>
    <dc:creator>EspenAbildgaard</dc:creator>
    <dc:date>2023-03-20T10:51:56Z</dc:date>
    <item>
      <title>Add manual input to a query on a button?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/add-manual-input-to-a-query-on-a-button/m-p/535042#M1916</link>
      <description>&lt;P&gt;Greetings all.&lt;BR /&gt;I have this situation I am trying to resolve, but can't find a solution.&lt;BR /&gt;&lt;BR /&gt;I have a dynamic section in a layout, in which I want to add a button. When clicked, this button should run a query, but it should first ask for a user input, which needs to be a part of the query.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;I want a button to run a Azure Log Analytics query.&lt;BR /&gt;I make the button, the azure-log-analytics-execute-query button script.&lt;BR /&gt;Say the query should be:&lt;BR /&gt;CommonSecurityLog&lt;BR /&gt;| where SourceIP == "USERINPUT"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, the execution would need to be:&lt;BR /&gt;1: User clicks button&lt;BR /&gt;2: Button asks the user for the IP to use.&lt;BR /&gt;3: User provides the input (IP), and the input replaces the "USERINPUT" field in the query.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any smart solutions to this?&lt;BR /&gt;Only reasonable alternative I have come up with, is to have another button which uses the setIncident script, sets the user input as a context field, and then the query uses that context field as the input.&lt;BR /&gt;A python script could do this too, but the end result would be the same (?), as the script would also use a context field for input.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 10:51:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/add-manual-input-to-a-query-on-a-button/m-p/535042#M1916</guid>
      <dc:creator>EspenAbildgaard</dc:creator>
      <dc:date>2023-03-20T10:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add manual input to a query on a button?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/add-manual-input-to-a-query-on-a-button/m-p/535080#M1918</link>
      <description>&lt;P&gt;In this case you can just wrap the command in an automation script, and have that script present the arguments/input to the user.&amp;nbsp; Anything marked mandatory will be prompted for, anything option you have the option to ask the User when you add the button to the layout.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would look something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-03-20 at 8.25.18 AM.png" style="width: 887px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48887iD2E018E1D006D008/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-03-20 at 8.25.18 AM.png" alt="Screen Shot 2023-03-20 at 8.25.18 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-03-20 at 8.25.14 AM.png" style="width: 961px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48888i7C0F1EC6CF273404/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-03-20 at 8.25.14 AM.png" alt="Screen Shot 2023-03-20 at 8.25.14 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-03-20 at 8.25.57 AM.png" style="width: 597px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48889i6E630F602C1E158F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-03-20 at 8.25.57 AM.png" alt="Screen Shot 2023-03-20 at 8.25.57 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically what is covered in video 11 of the training series:&amp;nbsp;&lt;A href="https://live.paloaltonetworks.com/t5/cortex-xsoar-how-to-videos/cortex-xsoar-how-to-customer-success-engineering-training-video/ta-p/484604" target="_blank"&gt;https://live.paloaltonetworks.com/t5/cortex-xsoar-how-to-videos/cortex-xsoar-how-to-customer-success-engineering-training-video/ta-p/484604&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:28:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/add-manual-input-to-a-query-on-a-button/m-p/535080#M1918</guid>
      <dc:creator>MBeauchamp2</dc:creator>
      <dc:date>2023-03-20T14:28:19Z</dc:date>
    </item>
  </channel>
</rss>

