cancel
Showing results for 
Search instead for 
Did you mean: 

Publish Basic Web Files to Azure Blob Storage From a Teams Channel Form

OK, so in my previous posts I've shown ways to kick of Flows via metadata triggers, ways to create simple HTML files from Forms and publish them, today I'm going to show how to publish a basic readable file to Azure from a Form in a Teams Channel.

 

There are many reasons why an organization may want to build such a Flow, but in my opinion this is more helpful as a primer for your own ideas, as there are many ways to convert files via Flow (and I'll post some resources for other ideas at the end of this article). Making PDFs from HTML files, pulling the content from other Office files and generating HTML from them and updating existing HTML files then publishing them to Flow are all possibilities.

 

Publishing an HTML or other file to Azure blob storage can enable anyone who has the link to that specific file to access it and download it, which is a great way to provide much easier non-secure access to information than sharing that file directly from a One Drive or via SharePoint Online (as even a link that does not require authentication sometimes requires that user to have a Microsoft Online account).

 

In addition this could easily be used to create simple secure records in an unstructured data format outside of Office 365. You could also store these basic information files in a Database rather than BLOB storage for instance, to add some structure to the populated information.

 

So let's get started with this simple Flow!

 

First Step- Make Your Simple Form and Add It To Your Team Channel Tab.

7-25-18-1.png7-25-18-2.png

 

OK! Good job. Now we'll head over to the Flow application and get started with the Forms Trigger "When a new response is submitted" and then choose the action go "Get Response Details"

 

Next, add another action.

 

This next action will be to create your BLOB, so select the Azure BLOB Storage-> Create BLOB option.

 

Flow will next ask you to establish a connection to the Azure BLOB storage container.

 

Using the Dynamic Data from the form responses, you can begin to populate your new file in the associated Azure BLOB storage container.

 

 

7-25-18-3.png

 

OK! That's about it for the Flow! Now, see below- I'm filling out my MS Form within my Teams Channel…

 

7-25-18-4.png

 

And when I click "Submit," my new file/BLOB pops up almost immediately within Azure!

 

 

7-25-18-5.png

 

When I visit the URL of the BLOB, here's what I get:

 

7-25-18-6.png

 

 

So that’s it for the main use case! I have a lot of things that are really good to know here at the end… so don't stop reading yet!

 

A lot of things that are really good to know here at the end.

 

  1. If you use HTML, the format of the files created in Flow does not allow true HTML rendering- you will see your code, though it is possible to publish any proper HTML file you make via Azure Blob Storage.
  2. You can make an email notification to send with the published URL for the location of the BLOB using a combination of the file path and dynamic data, but create an HTML email and use the format <a href="https://yourazureblob.blob.core.windows.net/blobcontainer/[dynamicformdata].html">https://yourazureb...> because the link format is choppy as the "%20" does not automatically populate spaces with the dynamic form fill. Example: FileName is the Publish Time of the document in the screenshot below-

 

 

7-25-18-7.png

 

 

 

 3. If you really want to publish nice, publicly viewable webpages or convert files, check out the following:

 Convert HTML to PDF using Flow

This use case shows the same as above, but also has a script to convert docs to HTML

PowerShell Scripts to convert office docs

You can also create an HTML Table directly as an action via Flow.

 

 

I hope that this helps beginners dive into more learning and encourages them to try out new things with Flow, and for you heavy scripters, there should be tons of things Flowing through your mind to solve all sorts of hefty use cases!

 

Have a great week everyone! 

Meet Our Blog Authors
  • Working daily with Microsoft Cloud to deliver the needs of my company, my customers and various Microsoft communities and forums. | Office 365 | Flow | PowerShell | PowerApps | SharePoint |
  • Co-founder of https://plumsail.com, Office 365 and SharePoint expert. Passionate about design and development of easy to use, convenient and flexible products.
  • Microsoft Business Apps MVP. Owner of ThriveFast, an Office 365 consulting company.
  • 7x Microsoft Business Solutions MVP (CRM)
  • Solution Architect with Slalom, and organizer of the Boston Office 365 User Group, and long term SharePoint/Office 365 veteren. Find more at http://www.davidlozzi.com. Follow @DavidLozzi
  • I'm keen in MS technologies, SharePoint, Office 365 and development for them
  • Daniel is a Business Productivity Consultant & Microsoft Business Solutions MVP who is very enthusiastic about all things Office 365, Microsoft Flow, PowerApps, Azure & SharePoint (Online). Since the preview, Daniel has been working with Microsoft Flow and later on with Microsoft PowerApps. That led to him being awarded an MVP Award for Business Solutions. He loves to blog, present and evangelize about improving productivity in the modern workspace with these amazing tools!
  • Michelle is an Office 365 solution architect in Twin Cities, MN. She has been delivering business collaboration solutions for years with her focus on SharePoint and Office 365. Michelle is a recent board member of the Minnesota Office 365 User Group and has been a member of the SharePoint community since 2009. She is a frequent speaker at MNSPUG and SharePoint Saturday and co-chaired the Legal SharePoint User Group for 4 years. Her most frequent projects have involved rolling out a large deployment of Office 365, SharePoint Online intranet, build of a "CHAMPS" Office 365 user adoption program and most recently, SharePoint On-Premise to Online Migration. Michelle is very excited about cloud technology as it is shifting her IT Pro focus to collaboration strategy and technical adoption.
  • I'm a Microsoft Office Servers and Services MVP with a special interest in SharePoint, Office 365, Microsoft Flow, Microsoft Teams and PowerApps. I work at Triad Group Plc ( https://triad.co.uk)
>