How to Submit Data From Power Apps to Excel?

Do you know how to submit data from Power Apps to Excel? No need to worry!

This Power Apps tutorial will teach great detail about submitting data from a Power Apps form to an Excel sheet.

How to Submit Data From Power Apps to Excel

Let’s take a simple scenario to workaround with this:

  1. Setup an Excel Sheet and format it as a table
  2. Upload the Excel file to any cloud database like OneDrive, OneDrive for Business, etc.
  3. Create Power Apps Canvas App and Connect the Excel
  4. Insert a Power Apps Edit form and connect the Excel to it
  5. Save, Publish, and Preview the app

1. Setup an Excel Sheet and format it as a table

  • I have an Excel Sheet named “Customer Details“. Inside this, I have added some different columns and respective records.
Column NameData Type
Customer IDText
Customer NameText
GenderChoice
Country And Area CodeText
Mobile NumberNumber
Emergency NumberNumber
EmailText
Submit Data from Power Apps app to Excel Sheet
  • After adding data to the Excel sheet, you should set up the Excel Sheet Format As a Table, and also check the My table has headers option, as in the screenshot below.
Submit Data from Power Apps Canvas app to Excel
  • Once the Excel Sheet is ready, you should provide the Table name [Customer_Details] under the Table Design below.
How to Submit Data from Power Apps Canvas app to Excel Sheet

2. Upload the Excel file to any cloud database like OneDrive for Business

  • Now, open OneDrive for Business -> Click on the + Add new button -> Select Files upload option -> Select respective Excel file [Customer Details] from your local device -> Click on the Open button.
Add Data from Power Apps app to Excel
  • Once the Excel file is added, it will appear under the “All” files dropdown, as in the screenshot below.
Add Data from Power Apps app to Excel File

3. Create Power Apps Canvas App and Connect the Excel

  • Next, we need to connect this Excel sheet to the Power Apps app and submit data from Power Apps to the Excel sheet.
  • For that, I have created a blank canvas app -> Select the + Add data -> Select a data source as OneDrive for Business -> Choose an Excel file [Customer Details.xlsx] as in the screenshot below.
Submit Data From Power Apps to Excel
  • Next, Choose the Excel table [Customer_Details] -> Click on the Connect button.
  • Once it is connected to the app, you will get a data source under the In your app drop-down, as shown below.
Submit Data From Power Apps app to Excel

4. Insert a Power Apps Edit form and connect the Excel to it

  • In the Power Apps app -> Select the default screen and rename it to “NewCustomerScreen” -> Insert an Edit form control as shown below.
How to Add Data from Power Apps to Excel
  • Select the Edit form and add the Data source as an Excel table [Customer_Details] like below.
How to Add Data from Power Apps app to Excel
  • Then, select the Edit fields option to add the respective Excel fields per the needs.
How to Add Data from Power Apps app to Excel Sheet
  • Once the Excel fields are added, change the Default mode property to “New” as in the screenshot below.
How to Add Data from Power Apps Canvas app to Excel Sheet
  • Next, insert a Save icon and set its OnSelect property as:
OnSelect = SubmitForm(frm_NewCustomer);
ResetForm(frm_NewCustomer)

Where,

  • SubmitForm() = This Power Apps function helps us to save any changes in a form control to the data source
  • frm_NewCustomer = Power Apps Edit Form Control
  • ResetForm() = This Function is used to reset the contents of a form to their initial values before the user makes any changes
How to Submit Data From Power Apps to Excel Sheet

5. Save, Publish, and Preview the app

  • Once your Power Apps app is ready, Save, Publish, and Preview the app. When a user enters a new record in the Power Apps edit form, it will be submitted in the Excel sheet.
  • To get the new record in an Excel file, go to OneDrive and open the respective Excel file as in the screenshot below.
Submit Data From Power Apps app to Excel Sheet

This is all about submitting data from the Power Apps app to an Excel Sheet.

Conclusion

I hope from this Microsoft Power Apps tutorial; you learned in detail how to submit data from Power Apps to Excel in detail.

Also, you may like some more Power Apps tutorials: