Hi @xbommer07 ,
Regarding the needs that you mentioned, I agree with your thought almost. You could consider put your formula within the OnStart property of the App. Of course, you could also consider add a Timer control in your canvas app to detect if the canvas app is online.
If you want to patch your local collection back to your SP List, please try the following formula:
If(
Connection.Connected,
ForAll(
Local_Auth As LoopItem,
Patch(
'Delivery Receipts',
Defaults('Delivery Receipts'),
LoopItem
)
)
)
or
If(
Connection.Connected,
Collect(
'Delivery Receipts',
Local_Auth
)
)
Note: I assume that the Local_Auth has same data structure as your SP List.
ForAll function, Patch function, Collect function
If the Local_Auth does not have same data structure as your SP List, please try the following workaround:
If(
Connection.Connected,
ForAll(
Local_Auth As LoopItem,
Patch(
'Delivery Receipts',
Defaults('Delivery Receipts'),
{
Column1: LoopItem.Column1,
Column2: LoopItem.Column2,
Column3: LoopItem.Column3,
...
...
}
)
)
)
Please also check and see if the following blog would help in your scenario:
https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/
Regards,