Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
SWhiteMKL
Frequent Visitor

Dataset Refresh using a trigger

Hi all,

 

We currently have a set up automated report and cube builds that are migrating from Cognos to PowerBI.  As part of the update cycle we have automation that triggers the rebuild of these Cognos objects by calling a batch file to initiate the process.  The batch is part of a larger in place orchestrator so I was wondering if there was a way to use a batch file but trigger the PowerBI execution.  This keeps the existing pipeline intact and allows us to trigger the PowerBI refresh on the same schedule.  We are just tying to minimize the pipeline rewrite if possible.

 

Thanks,

Steve

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

Yes, you can initiate a refresh request for a Semantic model via API calls.  In fact, you can even request refresh of a single table or even a partition (if you use incremental refresh).

 

These API calls can be done from PowerShell or from PowerAutomate or from any otther tool that allow (automatic) OAUTh2/AAD authentification.

 

Note that these calls only refresh a request.  For refresh monitoring you need to create additional processes.

View solution in original post

Thanks so much for the help.  We were able to get the triggers working and the refreshes are executing based on a database event now.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks for the reply from @lbendlin , please allow me to provide another insight:

 

Hi @SWhiteMKL ,

 

As a supplement, to trigger a Power BI dataset refresh using a batch file, you can use the Power BI REST API, specifically the Refresh Dataset API.This API allows you to programmatically trigger a dataset refresh in Power BI, which is a great fit for integrating into your existing batch file-driven processes.

 

For more details, you can read below document:

Datasets - Refresh Dataset - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

Best Regards,
Adamk Kong

 

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

 

lbendlin
Super User
Super User

Yes, you can initiate a refresh request for a Semantic model via API calls.  In fact, you can even request refresh of a single table or even a partition (if you use incremental refresh).

 

These API calls can be done from PowerShell or from PowerAutomate or from any otther tool that allow (automatic) OAUTh2/AAD authentification.

 

Note that these calls only refresh a request.  For refresh monitoring you need to create additional processes.

Thanks so much for the help.  We were able to get the triggers working and the refreshes are executing based on a database event now.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors