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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,806)