<?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: XSOAR CMDB - SQL issue in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xsoar-cmdb-sql-issue/m-p/1233769#M4108</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/307134"&gt;@tlmarques&lt;/a&gt;&amp;nbsp;– If the variables (the values with the&amp;nbsp;&lt;STRONG&gt;${ }&amp;nbsp;&lt;/STRONG&gt;syntax) are resolving to empty strings, this most likely indicates a problem with the context paths. To test the&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;context paths, open context data and paste in the full value (including the&amp;nbsp;&lt;STRONG&gt;${&lt;/STRONG&gt; &lt;STRONG&gt;}&lt;/STRONG&gt;) in the search bar at the top. This will show the exact value that will be returned. If it is unexpectedly blank, that indicates a problem with your path. If these are incident fields, you may have forgotten the&amp;nbsp;&lt;STRONG&gt;incident.&amp;nbsp;&lt;/STRONG&gt;at the beginning of the path.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 00:41:38 GMT</pubDate>
    <dc:creator>asawyer</dc:creator>
    <dc:date>2025-07-11T00:41:38Z</dc:date>
    <item>
      <title>XSOAR CMDB - SQL issue</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xsoar-cmdb-sql-issue/m-p/1233721#M4105</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use &lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;and &lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;to build a basic CMDB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my XSOAR playbook, I run an XDR XQL query, then try to insert the results into an SQL database using the sql-command automation. &lt;BR /&gt;&lt;BR /&gt;The command looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;INSERT INTO Devices (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;[hostname], [serial_number], [model], [MAC ADD], [IP Address],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;[Vendor], [Profile], [Type], [Operating System],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;[First Observed], [Last Observed], [Source Scan]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;) VALUES (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;'${hostname}', '${serial_number}', '${model}', '${mac}', '${ip}',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;'${vendor}', '${profile}', '${profile_type}', '${OS_COMBINED}',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;'${first_seen_date}', '${last_activity}', '${_COLLECTOR_TYPE}'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;My problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All values are being inserted as empty strings in the SQL table.&lt;/SPAN&gt;&lt;SPAN&gt;Has anyone successfully used context variables like ${hostname} in sql-command?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;Is there a correct way to pass data from the playbook context into the SQL insert?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 10:23:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xsoar-cmdb-sql-issue/m-p/1233721#M4105</guid>
      <dc:creator>tlmarques</dc:creator>
      <dc:date>2025-07-10T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: XSOAR CMDB - SQL issue</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xsoar-cmdb-sql-issue/m-p/1233769#M4108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/307134"&gt;@tlmarques&lt;/a&gt;&amp;nbsp;– If the variables (the values with the&amp;nbsp;&lt;STRONG&gt;${ }&amp;nbsp;&lt;/STRONG&gt;syntax) are resolving to empty strings, this most likely indicates a problem with the context paths. To test the&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;context paths, open context data and paste in the full value (including the&amp;nbsp;&lt;STRONG&gt;${&lt;/STRONG&gt; &lt;STRONG&gt;}&lt;/STRONG&gt;) in the search bar at the top. This will show the exact value that will be returned. If it is unexpectedly blank, that indicates a problem with your path. If these are incident fields, you may have forgotten the&amp;nbsp;&lt;STRONG&gt;incident.&amp;nbsp;&lt;/STRONG&gt;at the beginning of the path.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 00:41:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xsoar-cmdb-sql-issue/m-p/1233769#M4108</guid>
      <dc:creator>asawyer</dc:creator>
      <dc:date>2025-07-11T00:41:38Z</dc:date>
    </item>
  </channel>
</rss>

