cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gauthambr
Level: Powered On

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
Community Support Team
Community Support Team

Re: Creating Survey application in PowerApps

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
Level: Powered On

Re: Creating Survey application in PowerApps

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 105 members 5,338 guests
Please welcome our newest community members: