Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Good Morning!
Please I need some help: I have a power bi service report, which I exported as embeeded, to display on a TV!
It works perfectly for about 10mins, then it automatically logs off!
Is that so?
Does it have an internal timer?
Is there any setting so it never logs off?
Thanks!
Solved! Go to Solution.
Hi @mariobatistella ,
From the official document can see:
Embedding reports requires an access token. The access token has an expiration time, which means that after embedding a Power BI item, you have a limited amount of time to interact with it. To give your users a continuous experience, refresh the access token before it expires.
There are two ways to refresh your access token:
setAccessToken
APIAdditionally, this similar thread has a detailed discussion about this problem. In addition to expired tokens, the problem of caching is also mentioned, you can refer to it.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Good Morning!
Friends, I found something, please, could someone give an opinion on what it could be:
if I put the report path in the browser, it stays all day working normally, without expiring, like this:
https://app.powerbi.com/reportEmbed?........"
now if i put the address inside an html file that is what i need, using the instructions like this
<!DOCTYPE html>
<html>
<head>
...
it expires in 5 to 10 min, then I reload the page, and in 5 to 10 min it expires again, and it stays like this all day...
With this information, could anyone give any advice?
Thanks!
Hi @mariobatistella ,
From the official document can see:
Embedding reports requires an access token. The access token has an expiration time, which means that after embedding a Power BI item, you have a limited amount of time to interact with it. To give your users a continuous experience, refresh the access token before it expires.
There are two ways to refresh your access token:
setAccessToken
APIAdditionally, this similar thread has a detailed discussion about this problem. In addition to expired tokens, the problem of caching is also mentioned, you can refer to it.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Good evening!
So, I even understood the above documentation, but my problem is that I have knowledge, and I wanted to know via code, what should I do.., for example, today I display my embedded powerbi in my portal like this:
<iframe title="My Dashboard" width="1140" height="541.25" src="https://app.powerbi.com/reportEmbed?........" frameborder="0" allowFullScreen="true "></iframe>
And now, how and where do I put the instruction so that the frame doesn't automatically expire?
Thanks!
Hi @mariobatistella ,
Have you tried the workaroud:
setAccessToken
You can click on the link to view the steps in detail.
Best Regards,
Community Support Team _ kalyj
Any ideas to help me?
Otherwise I'm going to lose the project!
Thanks!
Good Morning!
Friends, I found something, please, could someone give an opinion on what it could be:
if I put the report path in the browser, it stays all day working normally, without expiring, like this:
https://app.powerbi.com/reportEmbed?........"
now if i put the address inside an html file that is what i need, using the instructions like this
<!DOCTYPE html>
<html>
<head>
...
it expires in 5 to 10 min, then I reload the page, and in 5 to 10 min it expires again, and it stays like this all day...
With this information, could anyone give any advice?
Thanks!
Good Morning!
Thanks for listening!
So, we don't have the knowledge to use Azure AD.
I wanted to try using the APIsetAccessToken as you said, but I don't know how to insert the code into the HTML.
Would you have any material from microsoft, or from someone to study?
Maybe it's the way to work for me, but I don't know how to apply.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.