<?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: Refresh and generate embed token using JavaScript SDK in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1172485#M24302</link>
    <description>Noted with thanks.</description>
    <pubDate>Sun, 21 Jun 2020 17:17:29 GMT</pubDate>
    <dc:creator>kian0417</dc:creator>
    <dc:date>2020-06-21T17:17:29Z</dc:date>
    <item>
      <title>Refresh and generate embed token using JavaScript SDK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1171037#M24288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had embedded the report on my web page.&lt;BR /&gt;But my embed token will expire after 1 hour, so I need to keep to generate the token in Powershell.&lt;/P&gt;&lt;P&gt;Then, I am trying to use javascript SDK to generate embed token and refresh when the token is expired. But when I run the function, it will get an error and failed to implement the function.&lt;/P&gt;&lt;P&gt;The refresh token function is something like as below link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Refresh-token-using-JavaScript-SDK-example" target="_self"&gt;Refresh token using JavaScript SDK example&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 09:29:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1171037#M24288</guid>
      <dc:creator>kian0417</dc:creator>
      <dc:date>2020-06-19T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh and generate embed token using JavaScript SDK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1171101#M24290</link>
      <description>&lt;P&gt;The error is something like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 10:03:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1171101#M24290</guid>
      <dc:creator>kian0417</dc:creator>
      <dc:date>2020-06-19T10:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh and generate embed token using JavaScript SDK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1171152#M24291</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239299" data-lia-user-login="kian0417" class="lia-mention lia-mention-user"&gt;kian0417&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The 'generateEmbedToken' as shown in that Wiki example, is a placeholder for you to put your own function in.&lt;BR /&gt;You will need to create a function that can call into the Power BI REST API -&amp;gt; &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/reports_generatetokeningroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/reports_generatetokeningroup&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It sounds as though you are already using this, as you have the initial embedding process working.&lt;BR /&gt;There is no built-in function in the Javacript API for automatically doing this action.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 10:48:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1171152#M24291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-19T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh and generate embed token using JavaScript SDK</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1172485#M24302</link>
      <description>Noted with thanks.</description>
      <pubDate>Sun, 21 Jun 2020 17:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refresh-and-generate-embed-token-using-JavaScript-SDK/m-p/1172485#M24302</guid>
      <dc:creator>kian0417</dc:creator>
      <dc:date>2020-06-21T17:17:29Z</dc:date>
    </item>
  </channel>
</rss>

