<?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: indicator extract data in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/indicator-extract-data/m-p/541265#M2097</link>
    <description>&lt;P&gt;If you're using an XSOAR automation that is tagged as a "dynamic-indicator-section", then the indicator including it's fields are passed into automatically as an argument called "indicator"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;def main():
    # magic
    # the indicator is passed automatically into an argument called "indicator"
    indicator = demisto.args().get('indicator')
    custom_fields = indicator.get("CustomFields",{})
    return_results(CommandResults(readable_output=json.dumps(custom_fields,indent=2)))


if __name__ in ('__main__', '__builtin__', 'builtins'):
    main()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically create your automation, tag it with dynamic-indicator-section, and add it to an Indicator Layout:&lt;/P&gt;
&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="Screenshot 2023-05-05 at 8.56.05 AM.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50013i17096AEA0F60719C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-05-05 at 8.56.05 AM.png" alt="Screenshot 2023-05-05 at 8.56.05 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-05-05 at 8.56.11 AM.png" style="width: 656px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50012i1311807531B63700/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-05-05 at 8.56.11 AM.png" alt="Screenshot 2023-05-05 at 8.56.11 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 15:00:03 GMT</pubDate>
    <dc:creator>MBeauchamp2</dc:creator>
    <dc:date>2023-05-05T15:00:03Z</dc:date>
    <item>
      <title>indicator extract data</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/indicator-extract-data/m-p/541170#M2093</link>
      <description>&lt;P&gt;im working on a project with xsoar indicators, we want to add a extra field to the layout that describes what the analist have to look for when certain indicators are present, now that problem that im running into is im trying to make a dynamic section script to call the extra data from our api but i need the tags we have given the indicator, but the tags are gathered using the custom field to be loaded in and as such i can't seem to gather the data i need in the script to dynamically get the right data from our api. is there anyway i could gather the data thats present in the indicator with my script using demisto-sdk?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 07:06:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/indicator-extract-data/m-p/541170#M2093</guid>
      <dc:creator>rune.man</dc:creator>
      <dc:date>2023-05-05T07:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: indicator extract data</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/indicator-extract-data/m-p/541265#M2097</link>
      <description>&lt;P&gt;If you're using an XSOAR automation that is tagged as a "dynamic-indicator-section", then the indicator including it's fields are passed into automatically as an argument called "indicator"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;def main():
    # magic
    # the indicator is passed automatically into an argument called "indicator"
    indicator = demisto.args().get('indicator')
    custom_fields = indicator.get("CustomFields",{})
    return_results(CommandResults(readable_output=json.dumps(custom_fields,indent=2)))


if __name__ in ('__main__', '__builtin__', 'builtins'):
    main()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically create your automation, tag it with dynamic-indicator-section, and add it to an Indicator Layout:&lt;/P&gt;
&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="Screenshot 2023-05-05 at 8.56.05 AM.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50013i17096AEA0F60719C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-05-05 at 8.56.05 AM.png" alt="Screenshot 2023-05-05 at 8.56.05 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-05-05 at 8.56.11 AM.png" style="width: 656px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50012i1311807531B63700/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-05-05 at 8.56.11 AM.png" alt="Screenshot 2023-05-05 at 8.56.11 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 15:00:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/indicator-extract-data/m-p/541265#M2097</guid>
      <dc:creator>MBeauchamp2</dc:creator>
      <dc:date>2023-05-05T15:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: indicator extract data</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/indicator-extract-data/m-p/541367#M2099</link>
      <description>&lt;P&gt;thank you for helping me with this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 06:30:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/indicator-extract-data/m-p/541367#M2099</guid>
      <dc:creator>rune.man</dc:creator>
      <dc:date>2023-05-08T06:30:06Z</dc:date>
    </item>
  </channel>
</rss>

