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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
User232431
Helper III
Helper III

Execute external python script in power bi

Hi , I have python script that has stored in local disk and now i want to execute this script in powerbi desktop

File path : "C/Users/DataUpload.py

 

is there any way to run above script using powerbi Button/ any other way?

 

Thanks.

 

4 REPLIES 4
rohit1991
Super User
Super User

Hi @User232431 

 

Power BI doesn’t support running local Python scripts directly with a button. But since your script is just sending an email, you can use the Power Automate visual instead.

 

Set up a flow in Power Automate that calls your SendGrid logic (via HTTP or Azure Function), then trigger that flow using a button in Power BI.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
lbendlin
Super User
Super User

what is the result of the script? How are you planning to use that result in Power BI?

Script - Which uses SendGrid package to send mails , can this be happen with powerbi Button?Thanks

Use the Power Automate visual as @rohit1991 suggested.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.