Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Creating Survey application in PowerApps

Hello All,


I have a requirement to create a Survey application in PowerApps using Azure SQL Database as a backend source. Can someone please guide me in creating it such as,


#1 How the table structure should be

#2 How to create PowerApps to write back the responses to Azure SQL Database


Currently I have this as my table Structure,



I have created an app with each question and it's corresponding options from each table. I need to know how to bind the responses with Question ID and Associate ID and save it in the Azure SQL Database.


Thanks in advance!

Community Support
Community Support

Hi @gauthambr,


I assume you have the following article reviewed:

1. Connect to SQL Server from PowerApps

2. Understand data forms in Microsoft PowerApps


If the current App structure is based on the Form control, then the new record should be created by Submitform() function.


If the data source is different from the one configured under the Data Source property of the EditForm control, then we need to take use of Patch() function to create or edit the record in another table.

For example:

Patch(Table2, Lookup(Table2, Condition for matching record), {RecordUpdates})

@Meneghino has a blog for beginners about working with Azure SQL Database in PowerApps:

PowerApps and Azure SQL Database: A step by step beginner's guide


Hope that should be helpful in your scenario.




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

Thanks! @v-micsh-msft, Will try and let you know for any queries.

Helpful resources

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,525)