cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply

Data Refresh by triggering Rest API through Pyspark code

Hello Everyone,

All my development and loading tables are made using Pyspark code. Is it possible for me to refresh my datasets individually using Pyspark to trigger my rest API's. 
I did scour the internet to find it could be done using Power Shell and even Python(Not fully automated though). 
Couldn't find any source implementing this using Pyspark.

Any help or informative link would be appreciated.

 

 @amitchandak 
@Greg_Deckler 
@parry2k 
@Cmcmahan 
@Icey 
@Eric_Zhang 

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Apoorv_Lunawat - If you can invoke the Power BI REST API via Pyspark then you should be able to:

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdataset


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I am not able to invoke the Rest API using Pyspark. I want to  know how to do that.

@Apoorv_Lunawat - You are going to have to ask a Pyspark forum how to invoke a REST API. Power BI's REST API is no different than any other REST API, you call a web page URL.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors