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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
duybachhpvn
Frequent Visitor

Script to automate single table in a dataset using XMLA Endpoint

Hi,

 

By using XMLA Endpoint, I was able to access my PowerBI Dataset in the Service using SQL Management Studio, which allowed me to process/refresh a single table in my dataset. The Script to refresh is as below

 

 

 

{
  "refresh": {
    "type": "full",
    "objects": [
      {
        "database": "BE Standard Cost Actual Reporting",
        "table": "Flash_Volume"
      }
    ]
  }
}

 

 

 

Now, if I want to schedule SQL Studio, or using any other tool to schedule this code to run in SQL Studio every 10 minutes, how can I do it?

3 REPLIES 3
alexrobe_RHI
Frequent Visitor

Have you ever succeded in solving your requirement? Maybe even an elegant way with PowerAutomate?
Thanks!

lbendlin
Super User
Super User

You can create a SSIS package for this, you can run a scheduled powershell script, you can use Power Automate to run a HTTP POST request.  What's your preference?

 

Note:  The tricky part with all of these will be to obtain the auth token.

Hi @lbendlin , Do you have some resources online that I can refer to for each of those options you mentioned?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.