Forum Discussion

powerbi_jenhen's avatar
powerbi_jenhen
Resolver II
4 years ago
Solved

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 ...
  • lbendlin's avatar
    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.