web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Seeking guidance on au...
Power Automate
Unanswered

Seeking guidance on automating HTML file publishing to Microsoft Teams channel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Team,

I am looking for some guidance on how to use Power Automate to publish the content of an HTML file to a Microsoft Teams channel. Here is my scenario:

  • I have a Python script that reads some data from a configuration.ini file and generates an HTML file as the output.
  • I want to automate the process of posting the HTML file content to a specific Microsoft Teams channel, either as a message or as a tab.

I have tried to follow some tutorials and examples online, but I am not sure how to connect the Python script to Power Automate, and how to handle the HTML file format in Microsoft Teams. Can anyone please suggest me a suitable flow or point me to some relevant resources?

Thank you for your help.

 

Regards,

-kranti

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Which version of Python is the script written in? If it's Python 2, you can run it via the Run Python script action. If it's Python 3, you will need to save it as a .py file and run it via Run application or a different script, such as PowerShell. Since you don't need the script to return anything back to the flow, both options are fine. If you needed outputs returned, you'd have issues with using Python 3. 

     

    As to publishing the document to Teams, it would likely be easier to do it via a cloud flow. But you can also push it to the team's site on SharePoint, so that it is accessible in the Files tab of the team.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 272 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard