cancel
Showing results for 
Search instead for 
Did you mean: 

Save public web forms with data table to Excel (Office 365) or Google Sheet

This is a form created with  Plumsail Forms for this article:

1_WebFormWithDataTable.png

 

Saving a web form to Excel Table

In this example, we are using OneDrive for Business as storage for our Excel file. When you create an Excel Online file in Office365, it's automatically stored there. We've created Orders.xlsx file and added table to it:2_ExcelTable.png

 

 

If you are working with a regular Excel file, you might not need to add a table, but the current version of Excel Online (Business) connector only supports adding rows to Tables, that's why it's better to create the Table straight away.

 

When you create custom Flow, follow this instruction to receive and parse data from submitted form - Creating Flow.

 

After Parsing JSON, we need to add data to Excel. Search for Excel Online (Business) and select Add a row into a table action:3_ExcelOnlineConnector.png

 

 

Next, we fill in all the required information about our file, the table we want to add a row to, as well as what information we want to add - we insert data parsed from the form. As you insert fields parsed from Data Table, the action will automatically switch to Apply to each:

4_Flow.png

 

 

Apply to each means that this action will run once for every row in the Data Table.

 

Once the information is filled in, we can press Save Flow and test Flow submission with our Form:5_FormSubmission.png

 

 

And here's the result after submission:6_SavingToExcel.png

 

 

Saving a web form to Google Sheet

I've created Orders spreadsheet in my Google account:

7_GoogleSheetTable.png

 

 

There is no need to add a table to it, but you should name columns in the first row in order to assign values with MS Flow.

 

Now, you can create new custom Flow, by following this instruction - Creating Flow.

 

After Parsing JSON, search for Google Sheets and select Insert row action:8_GoogleSheetsConnector.png

 

 

If this is your first time using this connector, you will most likely need to connect to your Google Account and give MS Flow access to your files. Once this is done, fill out the required info:9_InsertRowToGoogleSheetFlow.png

 

 

Once again, Apply to each will automatically be used once you add fields from the Data Table, and it means that the action will run once for every row in the Data Table.

 

After that, the Flow can be saved. To test it out, I once again fill out the form:10_FormSubmission.png

 

 

And we get the following result:11_SavingToGoogleSheet.png

 

 

You might have also noticed an additional column generated by MS Flow called __PowerAppsId__. It can be hidden away if necessary, at the same time it allows you to access the specific row with other Google Sheets actions, such as Get row, for example:

12_Get_Row.png

 

This post has been originally published in documentation of Plumsail Forms

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)
  • 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)
  • Passionate #Programmer #SharePoint #SPFx #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor