<?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: [DemistoClassApiModule] Why CustomFields in demisto.incident() in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/demistoclassapimodule-why-customfields-in-demisto-incident/m-p/529144#M1739</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/204366"&gt;@EnesOzdemir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could set all the details you want to a custom key of your choosing by using the !Set command. Afterwards you can use the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"demisto.get(demisto.context(), 'key_name')"&lt;/P&gt;
&lt;P&gt;As long as the details you want are in the Context Data you can always access what you need. Use the Try and Except flow to catch errors yet you can test that the field exists and is not empty with other built-in tools.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In regards to the main difference between custom fields and incident fields I cant provide you with an exact difference between&amp;nbsp;them in regards to CommonUserPython.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 12:53:22 GMT</pubDate>
    <dc:creator>michaelsysec242</dc:creator>
    <dc:date>2023-01-30T12:53:22Z</dc:date>
    <item>
      <title>[DemistoClassApiModule] Why CustomFields in demisto.incident()</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/demistoclassapimodule-why-customfields-in-demisto-incident/m-p/529138#M1738</link>
      <description>&lt;P&gt;Why is there a separate dictionary returned from demisto.incident? Does it matter whether a field is custom or builtin&lt;/P&gt;
&lt;P&gt;demisto.incident()['CustomFields']['myfield']&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am asking this because I am thinking about implementing a custom function in CommonUserPython to grab field values without worrying about if the field is custom or built-in. Would this implementation cause any trouble?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 11:51:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/demistoclassapimodule-why-customfields-in-demisto-incident/m-p/529138#M1738</guid>
      <dc:creator>EnesOzdemir</dc:creator>
      <dc:date>2023-01-30T11:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: [DemistoClassApiModule] Why CustomFields in demisto.incident()</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/demistoclassapimodule-why-customfields-in-demisto-incident/m-p/529144#M1739</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/204366"&gt;@EnesOzdemir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could set all the details you want to a custom key of your choosing by using the !Set command. Afterwards you can use the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"demisto.get(demisto.context(), 'key_name')"&lt;/P&gt;
&lt;P&gt;As long as the details you want are in the Context Data you can always access what you need. Use the Try and Except flow to catch errors yet you can test that the field exists and is not empty with other built-in tools.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In regards to the main difference between custom fields and incident fields I cant provide you with an exact difference between&amp;nbsp;them in regards to CommonUserPython.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 12:53:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/demistoclassapimodule-why-customfields-in-demisto-incident/m-p/529144#M1739</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2023-01-30T12:53:22Z</dc:date>
    </item>
  </channel>
</rss>

