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!
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
User | Count |
---|---|
258 | |
110 | |
97 | |
57 | |
40 |