
Announcements
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 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
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.