In Dynamics 265 2020 wave 2 release offline capabilities for model driven apps were made available generally. Model driven apps can be configured to work offline, create / modify data in local cache even if there is no internet or intermittent internet connectivity. All the changes gets sync to cloud when a device is connected to internet.
How to Configure Model Driven App for Offline Mode:
A step by step approach to make model driven app available for offline use is under:
- Enable for offline the tables used by your (model driven) app:
Most of the out-of-box (OOB) tables (e.g. Lead) are already setup for offline use but custom tables need to be setup.
- Create mobile offline profile in Power Platform Admin center which will determine what data to be stored on mobile device
- Go to Power Platform admin center (microsoft.com), click Environments and then select environment and then click on settings.
- On Settings page, click on “Mobile Configuration”
- Select New Profile or click on existing profile to edit
- Open the Profile after creation and click on Add table:
- All the entities enabled for offline will show up in the list:
- Choose a filter based on the ownership of table and click Save to add the table to the profile:
- Add users to the profile and this will make the app available offline for users (added). Note that one user can be added to one profile only and each time users is added / removed then the profile will need to be published:
- The profile setup is in draft mode. Click on Publish to that data can start syncing to users mobile device:
- After all the above steps are completed, go to your model driven app found on https://make.powerapps.com. Select the app, click on edit on top bar and select propoerties. Checkon the checkbox “Enable Mofile Offline”:
- Select the profile, click Save and then Publish:
The offline setup of model driven app is complete.
Some of the new functionality introduced in offline mode for Model Driven Apps:
- Barcode scanner is available in offline mode.
- Sync interval can be adjusted per entity and can be set as frequent as every 5 min.
Enjoy using Model Drive Apps while you’re offline 🙂
Awesome post. Keep it up!