<?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 PowerBI REST API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-REST-API/m-p/1007546#M22946</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm no expert in any programming language so it's been real hard to figure this one out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to accomplish is using the PowerBI REST API which would be triggered by a flow which would refresh a few dataflows (in order) when a file is updated in a OneDrive folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problems I'm running into are 2:&lt;/P&gt;&lt;P&gt;1) The Authentication Key seems to expire after ~30m, when I run the test in documentation and copy that key it works fine for a few mins, however after about half an hour i get a 403 no authorization reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I understand from the API documentation I can request an answer on WHEN it finishes (which would allow me to know when to start the next update) however I don't see this in the response (might a flow question but may apply here as well :P)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "notifyOption": "MailOnCompletion"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documentation found:&lt;/P&gt;&lt;P&gt;Dataflow Dcoumentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/dataflows/refreshdataflow" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/dataflows/refreshdataflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get Auth&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 18:59:15 GMT</pubDate>
    <dc:creator>LABORSAL</dc:creator>
    <dc:date>2020-04-03T18:59:15Z</dc:date>
    <item>
      <title>PowerBI REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-REST-API/m-p/1007546#M22946</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm no expert in any programming language so it's been real hard to figure this one out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to accomplish is using the PowerBI REST API which would be triggered by a flow which would refresh a few dataflows (in order) when a file is updated in a OneDrive folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problems I'm running into are 2:&lt;/P&gt;&lt;P&gt;1) The Authentication Key seems to expire after ~30m, when I run the test in documentation and copy that key it works fine for a few mins, however after about half an hour i get a 403 no authorization reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I understand from the API documentation I can request an answer on WHEN it finishes (which would allow me to know when to start the next update) however I don't see this in the response (might a flow question but may apply here as well :P)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "notifyOption": "MailOnCompletion"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documentation found:&lt;/P&gt;&lt;P&gt;Dataflow Dcoumentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/dataflows/refreshdataflow" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/dataflows/refreshdataflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to get Auth&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 18:59:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-REST-API/m-p/1007546#M22946</guid>
      <dc:creator>LABORSAL</dc:creator>
      <dc:date>2020-04-03T18:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-REST-API/m-p/1008081#M22961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/85855"&gt;@LABORSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. You have to generate the access token on the fly not like copy and pasting. Please refer&amp;nbsp;&lt;A href="https://powerusers.microsoft.com/t5/Building-Flows/Microsoft-Flow-Token-Authentication-https-graph-microsoft-com-v1/td-p/85498" target="_blank"&gt;https://powerusers.microsoft.com/t5/Building-Flows/Microsoft-Flow-Token-Authentication-https-graph-microsoft-com-v1/td-p/85498&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. The notifyOption is a request Body parameter, it is not a &lt;STRONG&gt;JSON&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;output reponse&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 13:22:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-REST-API/m-p/1008081#M22961</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2020-04-04T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-REST-API/m-p/1011203#M22986</link>
      <description>&lt;P&gt;This seems to be it, although getting the data is another really comlpicated topic &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 01:03:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-REST-API/m-p/1011203#M22986</guid>
      <dc:creator>LABORSAL</dc:creator>
      <dc:date>2020-04-07T01:03:15Z</dc:date>
    </item>
  </channel>
</rss>

