<?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 Refresh a Token in JavaScript in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Token-in-JavaScript/m-p/222867#M7067</link>
    <description>&lt;P&gt;Hi, I'm Sarah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, I would like some clarification, On this exemple in the order to refresh the token to embed a rapport, I don't&amp;nbsp;know what correspond to parameters.&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;&lt;P&gt;You can found on this page:&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Refresh-token-using-JavaScript-SDK-example" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Refresh-token-using-JavaScript-SDK-example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the groupID, reportID, datasetID and embedUrl, but I don't found the accessLevel and the BaseUri.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whatare these elements and where can I find them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 08:56:11 GMT</pubDate>
    <dc:creator>SarahQUL</dc:creator>
    <dc:date>2017-08-01T08:56:11Z</dc:date>
    <item>
      <title>Refresh a Token in JavaScript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Token-in-JavaScript/m-p/222867#M7067</link>
      <description>&lt;P&gt;Hi, I'm Sarah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, I would like some clarification, On this exemple in the order to refresh the token to embed a rapport, I don't&amp;nbsp;know what correspond to parameters.&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;&lt;P&gt;You can found on this page:&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Refresh-token-using-JavaScript-SDK-example" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Refresh-token-using-JavaScript-SDK-example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the groupID, reportID, datasetID and embedUrl, but I don't found the accessLevel and the BaseUri.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whatare these elements and where can I find them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:56:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Token-in-JavaScript/m-p/222867#M7067</guid>
      <dc:creator>SarahQUL</dc:creator>
      <dc:date>2017-08-01T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh a Token in JavaScript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Token-in-JavaScript/m-p/223786#M7068</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="33367" data-lia-user-login="SarahQUL" class="lia-mention lia-mention-user"&gt;SarahQUL&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The BaseUrl should be "&lt;A href="https://api.powerbi.com/beta/myorg/" target="_blank"&gt;https://api.powerbi.com/beta/myorg/&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to the acccessLevel, it depends. When embedding a dataset to create reports, it is&lt;/P&gt;
&lt;PRE&gt;{
  "accessLevel": "Create",
  "datasetId": "youdatasetID",
  "allowSaveAs": true
}
&lt;/PRE&gt;
&lt;P&gt;When embedding a report or dashboard, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "accessLevel": "View"
}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;See&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/mt784614.aspx" target="_self"&gt;GenerateToken&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 09:26:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-a-Token-in-JavaScript/m-p/223786#M7068</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-08-02T09:26:18Z</dc:date>
    </item>
  </channel>
</rss>

