I've used the following formula on a button to patch a set of running results to a Google sheet spreadsheet:
However, I need the user to be able to save a different set of results on a new google sheet each week from PowerApps. Is there a way the user can select a sheet to patch to? eg:
User chooses Google sheet,
Defaults(User chooses Google sheet),
Or is there a completely different way of doing this other than patching?
Any help would be greatly appreciated.
Could you please share a bit more about your scenario?
Do these Google sheets have same data structure?
Do you want the user to be able to choose a Google sheet manually as a data source within your Patch formula?
Currently, when using Patch function to submit your data to your data source (Google sheet), you must provide a specific Google sheet table as a data source (you could not choose a data source dynamically).
If you want the user to be able to choose a Google sheet manually as a data source within your Patch formula, I afraid that there is no way to achieve your needs in PowerApps currently.
If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:
Maybe Switch Function?
I would put a radio button with 1 or 2, then the useris able to selected with database wants to patch based on the radio value...
Switch(radio.selected.value, 1 , patch on a DB, 2 , patch on another database..
you can achiev it with IF also, but not so clean formula thought
Thanks for your response.
Are you able to explain a bit more what you mean by archiving here?
Sorry, I'm new to PowerApps but this solution sounds interesting.
This could definitely work, I hadn't thought about doing it this way.
Thanks for your suggestion. I'll give this a try and let you know the outcome.
This will be a conference that you do not want to miss!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.
Featuring samples like Return to the Workplace and Emergency Response Applications
Features releasing from October 2020 through March 2021