Greetings. This is a rather complex question and I'll do the best I can to explain the desired outcome. Here's the scenario:
An employee comes on shift. They conduct an inventory check for items that are either located in BOX1, BOX 2, or BOTH. The inventory, the location, the employees on and off shift, and all the items that are there are then written to an SQL table. Upon completion of the inspection, a record is added, an email is sent to the manager and the data is used to create a document in Word.
I am using the following:
1. SQL Table (Azure)
2. 1 Screen
For the SORT GALLERY function, would the following work?
SortByColumns( Search('LocationName', SearchInput.text, "Box1")
For Submit All Fields, would the Patch function be the correct method? I have this particular formula:
Patch((Location & Box(SELECTED) OnComingEmployee & OffcomingEmployee & GalleryItems & UserSubmitting, CheckTable,ChangeRecord))
Any help would be appreciated.
About Sort/SortByColumn columns, please check this documentation for a reference:
According to this documentation, we know that Sort function sorts a table based on a formula, while SortByColumns sorts a table based on one or more columns.
If you are trying to use SortByColumns, please try to configure the Items property of a Gallery as e.g.
About Patch function, please check this documentation for more details:
We can use Patch function to create or modify one or more records in a data source.
I create a simple app to use Patch function to submit data to data source, I configure the OnSelect property of a Button as following.
when the button is clicked, I can patch the data to data source, and also send an email.
Hope my simple scenario could be a reference for you. Please feel free reply if you need more help.
And about uploading file to SharePoint, it has not been supported yet, so we are not able to upload file from PowerApps to data source currently.
Yes, we are also able to Patch data to SQL table.
The formula configuration should be the same.
Please try it on your side.
If you have any problems with it, please feel free reply.
If you want to patch all the filtered data to data source, save the data to a Collection first then patch it would be a good choice.
And I guess this thread about “Patch a Collection” could be a reference for you:
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand