<?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 Power BI REST API Bad Request Object must implement IConvertible. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Bad-Request-Object-must-implement-IConvertible/m-p/905345#M22040</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use a new PBI API to get activity events but when I try to call the API I receive 400 bad request: Object must implement IConvertible for startDateTime and endDateTime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have registered app in Azure Active Directory with Power BI Service Tenant.ReadAll permission.&lt;/P&gt;&lt;P&gt;For getting access token I call POST on&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://login.microsoftonline.com/common/oauth2/token" target="_blank"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt; with body:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;grant_type=password&lt;BR /&gt;&amp;amp;username=user with global admin permission&lt;BR /&gt;&amp;amp;password=password&lt;BR /&gt;&amp;amp;client_id=client ip&lt;BR /&gt;&amp;amp;client_secret=client secret&lt;BR /&gt;&amp;amp;resource=&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used the received token for Bearer authorization on&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime=2020-01-20T00:00:00.000Z&amp;amp;endDateTime=2020-01-20T23:59:59.999Z" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime=2020-01-20T00:00:00.000Z&amp;amp;endDateTime=2020-01-20T23:59:59.999Z&lt;/A&gt; and receive the error above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Other APIs works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could anyone help, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zdenek&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 14:45:46 GMT</pubDate>
    <dc:creator>soldous</dc:creator>
    <dc:date>2020-01-20T14:45:46Z</dc:date>
    <item>
      <title>Power BI REST API Bad Request Object must implement IConvertible.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Bad-Request-Object-must-implement-IConvertible/m-p/905345#M22040</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use a new PBI API to get activity events but when I try to call the API I receive 400 bad request: Object must implement IConvertible for startDateTime and endDateTime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have registered app in Azure Active Directory with Power BI Service Tenant.ReadAll permission.&lt;/P&gt;&lt;P&gt;For getting access token I call POST on&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://login.microsoftonline.com/common/oauth2/token" target="_blank"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt; with body:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;grant_type=password&lt;BR /&gt;&amp;amp;username=user with global admin permission&lt;BR /&gt;&amp;amp;password=password&lt;BR /&gt;&amp;amp;client_id=client ip&lt;BR /&gt;&amp;amp;client_secret=client secret&lt;BR /&gt;&amp;amp;resource=&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used the received token for Bearer authorization on&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime=2020-01-20T00:00:00.000Z&amp;amp;endDateTime=2020-01-20T23:59:59.999Z" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime=2020-01-20T00:00:00.000Z&amp;amp;endDateTime=2020-01-20T23:59:59.999Z&lt;/A&gt; and receive the error above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Other APIs works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could anyone help, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zdenek&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 14:45:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Bad-Request-Object-must-implement-IConvertible/m-p/905345#M22040</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2020-01-20T14:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Bad Request Object must implement IConvertible.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Bad-Request-Object-must-implement-IConvertible/m-p/913370#M22119</link>
      <description>&lt;P&gt;I talked with the support and the solution is to enclose dates in the single quotation marks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope they changed it in the official documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 07:58:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Bad-Request-Object-must-implement-IConvertible/m-p/913370#M22119</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2020-01-28T07:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Bad Request Object must implement IConvertible.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Bad-Request-Object-must-implement-IConvertible/m-p/941263#M22394</link>
      <description>&lt;P&gt;When you manage to retrieve the first page, and in order to fetch the next page, you will need to pass the continutation token retrieved from the inital response.&lt;/P&gt;&lt;P&gt;Be aware that for this parameter, you also need to 'Uridecode' the token returned by the API and enclose it in single quotes.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Bad-Request-Object-must-implement-IConvertible/m-p/941263#M22394</guid>
      <dc:creator>bdarbonneau</dc:creator>
      <dc:date>2020-02-20T16:57:53Z</dc:date>
    </item>
  </channel>
</rss>

