Forum Discussion
powerbi_jenhen
4 years agoResolver II
Wait for Power BI dataset to refresh using the API
Hi, Via Powershell I'm able to invoke the Power BI API to start a dataset refresh using the "refresh dataset in group" API but using a while loop like below on the status value doesn't appear to ...
- 4 years ago
You forgot to set the value of $status inside the loop.
Don't ask for it every five seconds. Every minute is enough.
lbendlin
4 years agoSuper User
You forgot to set the value of $status inside the loop.
Don't ask for it every five seconds. Every minute is enough.
powerbi_jenhen
4 years agoResolver II
Thanks for your reply.
The value of status will be set by the Power BI Service, I'm using the Start-Sleep to wait for status to change to "Completed" when the refresh completes. However, once I see the refresh has completed the new status isn't reflected to exit the loop.
Thanks.