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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.