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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard