Hi Team,
I have a Collection connected to a Gallery in Power Apps, whenever users click Run button then it will populate the Collection with some data and users can either edit, delete or add new rows.
Now I want to save this Collection into my Table in SQL Server. I can't just simply run the Patch function because I need to do some checking before updating the tables whether it's a new record or just update it or if it's missing in the collection then just delete the row in the SQL Server. I believe the checking of data will be much simpler in SQL rather than in Power Apps.
Is there a way to pass a Collection or Table into a Parameter of SQL Stored Procedure?
MyObjectInPowerApps.dbouspUpdateEmployeeTable({
EmployeeList: colEmployeesFromPowerApps
});
Like this code in Power Apps where EmployeeList is a User Defined Type Table parameter in SQL Server and the colEmployeesFromPowerApps is a Collection with same set of columns from the EmployeeList.