cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abpgupta
Helper V
Helper V

Pass parameter in REST API URL for Dataset Refresh

Hi All,

 

Is there any way to pass Power Query Parameters via URL for dataset refresh?

 

Thanks for any inputs!

 

 

1 ACCEPTED SOLUTION

No, you would not be able to pass any parameters through to the refresh command as there is no parameter available via the API (see Asynchronous refresh with the Power BI REST API - Power BI | Microsoft Docs)

 

You could use a two-step process, firstly you can call the API to update the parameters (See Datasets - Update Parameters - REST API (Power BI Power BI REST APIs) | Microsoft Docs), then call the data set refresh (see Asynchronous refresh with the Power BI REST API - Power BI | Microsoft Docs). This would give you the same net effect, just not in a single call.

 

View solution in original post

1 REPLY 1

No, you would not be able to pass any parameters through to the refresh command as there is no parameter available via the API (see Asynchronous refresh with the Power BI REST API - Power BI | Microsoft Docs)

 

You could use a two-step process, firstly you can call the API to update the parameters (See Datasets - Update Parameters - REST API (Power BI Power BI REST APIs) | Microsoft Docs), then call the data set refresh (see Asynchronous refresh with the Power BI REST API - Power BI | Microsoft Docs). This would give you the same net effect, just not in a single call.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors