cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gauthambr
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,

SurveyAnalytics.PNG

 

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!

2 REPLIES 2
v-micsh-msft
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.

 

Regards,

Michael

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.
gauthambr
Frequent Visitor

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,535)