<?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 issues with defender API calls in Power  Query (odata) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/issues-with-defender-API-calls-in-Power-Query-odata/m-p/2027989#M31240</link>
    <description>&lt;P&gt;In Power Query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the first query work and the second query does not? If the &lt;A href="https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/vulnerability?view=o365-worldwide" target="_blank"&gt;field types&lt;/A&gt; are integer or Boolean the filter fails. Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 1 (works) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query = "Vulnerabilities?$filter=severity eq 'Critical' and cvssV3 eq 9.8",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source = OData.Feed(&lt;A href="https://api.securitycenter.microsoft.com/api/" target="_blank"&gt;https://api.securitycenter.microsoft.com/api/&lt;/A&gt; &amp;amp; Query, null, [Implementation="2.0", MoreColumns=true])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 2 (fails) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query = "Vulnerabilities?$filter=severity eq 'Critical' and exposedMachines gt 0",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source = OData.Feed(&lt;A href="https://api.securitycenter.microsoft.com/api/" target="_blank"&gt;https://api.securitycenter.microsoft.com/api/&lt;/A&gt; &amp;amp; Query, null, [Implementation="2.0", MoreColumns=true])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 10:38:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-20T10:38:07Z</dc:date>
    <item>
      <title>issues with defender API calls in Power  Query (odata)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/issues-with-defender-API-calls-in-Power-Query-odata/m-p/2027989#M31240</link>
      <description>&lt;P&gt;In Power Query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the first query work and the second query does not? If the &lt;A href="https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/vulnerability?view=o365-worldwide" target="_blank"&gt;field types&lt;/A&gt; are integer or Boolean the filter fails. Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 1 (works) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query = "Vulnerabilities?$filter=severity eq 'Critical' and cvssV3 eq 9.8",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source = OData.Feed(&lt;A href="https://api.securitycenter.microsoft.com/api/" target="_blank"&gt;https://api.securitycenter.microsoft.com/api/&lt;/A&gt; &amp;amp; Query, null, [Implementation="2.0", MoreColumns=true])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query 2 (fails) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query = "Vulnerabilities?$filter=severity eq 'Critical' and exposedMachines gt 0",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source = OData.Feed(&lt;A href="https://api.securitycenter.microsoft.com/api/" target="_blank"&gt;https://api.securitycenter.microsoft.com/api/&lt;/A&gt; &amp;amp; Query, null, [Implementation="2.0", MoreColumns=true])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 10:38:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/issues-with-defender-API-calls-in-Power-Query-odata/m-p/2027989#M31240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-20T10:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: issues with defender API calls in Power  Query (odata)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/issues-with-defender-API-calls-in-Power-Query-odata/m-p/2030040#M31258</link>
      <description>&lt;P&gt;Is&amp;nbsp;&lt;SPAN&gt;exposedMachines an actual column in your source data or are you trying to run an aggregation of sorts?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Aug 2021 00:37:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/issues-with-defender-API-calls-in-Power-Query-odata/m-p/2030040#M31258</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-22T00:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: issues with defender API calls in Power  Query (odata)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/issues-with-defender-API-calls-in-Power-Query-odata/m-p/2034087#M31296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The field type applied to the filter can be &lt;SPAN&gt;a number, datetime, or string and the type used must match the type set in the dataset.&amp;nbsp;&lt;/SPAN&gt;However, Boolean type is not included in them. Could you please change &lt;SPAN&gt;Query 2&lt;/SPAN&gt; to the following form: equal to a fixed value already in the dataset and&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;check if it works after updated?&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;Query = "Vulnerabilities?$filter=severity eq 'Critical' and exposedMachines &lt;FONT size="3" color="#FF0000"&gt;eq&amp;nbsp;[static value]&lt;/FONT&gt;",&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 06:42:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/issues-with-defender-API-calls-in-Power-Query-odata/m-p/2034087#M31296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-24T06:42:34Z</dc:date>
    </item>
  </channel>
</rss>

