I've got 2 lists, Onboard & Onboard-DEV.
The Onboard is the production list and the other the development.
I can't get it to work to switch in environments in the patch function.
Based on a flow I know in which environment I am working and want to use this to switch in sharepoint list.
I tried the following query:
Patch(If(varEnvironment = " DEV",'Onboard-DEV', 'Onboard') ,{
Onboard is a direct copy of Onboard-DEV.
When using both separate they work, but combined not (then every column isn't recognized anymore).
The problem is that the application is a Standard application and can't be a premium (yet),
Is there any smart way? Or should I do the following (which i don't want).
if(varEnvironment = " DEV",
Patch('Onboard-DEV',{}),
Patch('Onboard',{})
);
There are quite some columns which will be updated from here.
Last option is to add a column "Environment" and just put PROD/DEV over there and adjust all my other windows in the app.
Thanks in advance.