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
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • I am a Microsoft Business Applications MVP and a Senior Manager at EY. I am a technology enthusiast and problem solver. I work/speak/blog/Vlog on Microsoft technology, including Office 365, Power Apps, Power Automate, SharePoint, and Teams Etc. I am helping global clients on Power Platform adoption and empowering them with Power Platform possibilities, capabilities, and easiness. I am a leader of the Houston Power Platform User Group and Power Automate community superuser. I love traveling , exploring new places, and meeting people from different cultures.
  • SharePoint, Microsoft 365 and Power Platform Developer | Contributor on SharePoint StackExchange
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • I am the Owner/Principal Architect at Don't Pa..Panic Consulting. I've been working in the information technology industry for over 30 years, and have played key roles in several enterprise SharePoint architectural design review, Intranet deployment, application development, and migration projects. I've been a Microsoft Most Valuable Professional (MVP) 12 consecutive years and am also a Microsoft Certified SharePoint Masters (MCSM) since 2013.
  • Big fan of Power Platform technologies and implemented many solutions.
  • Passionate #Programmer #SharePoint #SPFx #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor
  • Web site – https://kamdaryash.wordpress.com Youtube channel - https://www.youtube.com/channel/UCM149rFkLNgerSvgDVeYTZQ/