Forum Discussion

campelliann's avatar
campelliann
Post Patron
3 years ago
Solved

Refresh Dataset Button on PowerBI Embedded

Hi, So we have scheduled refreshes each 2 hours, but sometimes a user changes something on a source and would like to imediately see the changes and be able to refresh manually the published versi...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi , campelliann 

    Accoridng to your description, you want to refresh a embed report by a buuton.

    For refreshing a dataset , you can try to use REST API to call the requst to refresh a dataset in some workspace.

    You can then use JavaScript to create a button that calls the REST API to refresh the dataset. Here is an example of how to refresh a dataset using the REST API.

    For the rest api , you can refer to :
    Datasets - Refresh Dataset In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly