<?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: RQL - How to add JSON field conditionally in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-how-to-add-json-field-conditionally/m-p/571154#M1135</link>
    <description>&lt;P&gt;Conditional statements are not supported in RQL.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Dec 2023 17:41:59 GMT</pubDate>
    <dc:creator>MLabadie</dc:creator>
    <dc:date>2023-12-28T17:41:59Z</dc:date>
    <item>
      <title>RQL - How to add JSON field conditionally</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-how-to-add-json-field-conditionally/m-p/570779#M1133</link>
      <description>&lt;P&gt;I'm trying to addcolumn with a field from a JSON configuration, but only&amp;nbsp; if certain condition of another field is satisfied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="python"&gt;config from cloud.resource where api.name = 'aws-api-xyzl'  CONDITIONS addcolumn $.list[ if CONDITIION_FIELD equals 12345)].FIELD_OF_INTEREST&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already tryed the filter syntax used in JSON.RULES assertion, but it didn't work:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config from cloud.resource where api.name = 'aws-api-xzyl' CONDITION addcolumn $.list[?any(FIELD_FOR_CONDITION == CONDITION)].FIELD_OF_INTERERST&lt;/LI-CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 24 Dec 2023 17:38:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-how-to-add-json-field-conditionally/m-p/570779#M1133</guid>
      <dc:creator>JPReis</dc:creator>
      <dc:date>2023-12-24T17:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: RQL - How to add JSON field conditionally</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-how-to-add-json-field-conditionally/m-p/571154#M1135</link>
      <description>&lt;P&gt;Conditional statements are not supported in RQL.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 17:41:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-how-to-add-json-field-conditionally/m-p/571154#M1135</guid>
      <dc:creator>MLabadie</dc:creator>
      <dc:date>2023-12-28T17:41:59Z</dc:date>
    </item>
  </channel>
</rss>

