<?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: Power bi javascript api data refresh in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-javascript-api-data-refresh/m-p/114437#M3947</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8497" data-lia-user-login="mikihiir" class="lia-mention lia-mention-user"&gt;mikihiir&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;So far the refresh is not avaible for a production PowerBI Javascript release, you can check &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/issues/4" target="_self"&gt;Missing a “Refresh” method to efficiently refresh a report/tile&lt;/A&gt;. You shall wait for the release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to re-embed the report to do the refresh, this would refresh the data from directquery based on my test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/jquery/dist/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;  
 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/powerbi-client/dist/powerbi.js""&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;
var embedConfiguration = {
    type: 'report',
    accessToken: 'yourTokenHere',
    id: '4c42a9f6-3ef4-xxxxxxxxxd5d6ebdac79d',
    embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=4c42a9fxxxxxxxxx-91f5-d5d6ebdac79d' 
}; 

var report;

window.onload = function () { 

var $reportContainer = $('#reportContainer'); 
report= powerbi.embed($reportContainer.get(0), embedConfiguration);
 
} 

&lt;STRONG&gt;function reloadreport(){ 
var $reportContainer = $('#reportContainer');
powerbi.embedNew($reportContainer.get(0), embedConfiguration);

};&lt;/STRONG&gt;
&amp;lt;/script&amp;gt;&lt;BR /&gt;
&amp;lt;button onclick="reloadreport()"&amp;gt;Click me to refresh&amp;lt;/button&amp;gt;
&amp;lt;div id="reportContainer"&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/html&amp;gt;  
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 09:47:37 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-01-17T09:47:37Z</dc:date>
    <item>
      <title>Power bi javascript api data refresh</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-javascript-api-data-refresh/m-p/113554#M3931</link>
      <description>&lt;P&gt;How do u refresh data in power bi javascript api when using direct query ?&lt;/P&gt;&lt;P&gt;There used to be a refresh function, now it is removed.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2017 17:09:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-javascript-api-data-refresh/m-p/113554#M3931</guid>
      <dc:creator>mikihiir</dc:creator>
      <dc:date>2017-01-15T17:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi javascript api data refresh</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-javascript-api-data-refresh/m-p/114437#M3947</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8497" data-lia-user-login="mikihiir" class="lia-mention lia-mention-user"&gt;mikihiir&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;So far the refresh is not avaible for a production PowerBI Javascript release, you can check &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/issues/4" target="_self"&gt;Missing a “Refresh” method to efficiently refresh a report/tile&lt;/A&gt;. You shall wait for the release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to re-embed the report to do the refresh, this would refresh the data from directquery based on my test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/jquery/dist/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;  
 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/powerbi-client/dist/powerbi.js""&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;
var embedConfiguration = {
    type: 'report',
    accessToken: 'yourTokenHere',
    id: '4c42a9f6-3ef4-xxxxxxxxxd5d6ebdac79d',
    embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=4c42a9fxxxxxxxxx-91f5-d5d6ebdac79d' 
}; 

var report;

window.onload = function () { 

var $reportContainer = $('#reportContainer'); 
report= powerbi.embed($reportContainer.get(0), embedConfiguration);
 
} 

&lt;STRONG&gt;function reloadreport(){ 
var $reportContainer = $('#reportContainer');
powerbi.embedNew($reportContainer.get(0), embedConfiguration);

};&lt;/STRONG&gt;
&amp;lt;/script&amp;gt;&lt;BR /&gt;
&amp;lt;button onclick="reloadreport()"&amp;gt;Click me to refresh&amp;lt;/button&amp;gt;
&amp;lt;div id="reportContainer"&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/html&amp;gt;  
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 09:47:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-javascript-api-data-refresh/m-p/114437#M3947</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-01-17T09:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi javascript api data refresh</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-bi-javascript-api-data-refresh/m-p/116566#M4021</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:32:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-bi-javascript-api-data-refresh/m-p/116566#M4021</guid>
      <dc:creator>mikihiir</dc:creator>
      <dc:date>2017-01-20T13:32:25Z</dc:date>
    </item>
  </channel>
</rss>

