How to find if the app dynamics 365 for phones is in offline mode from javascript.
I want to execute the crud operation if it is in offline mode.
How to find if the app dynamics 365 for phones is in offline mode from javascript.
I want to execute the crud operation if it is in offline mode.
Hi,
To make sure you can crud entities offline, just make sure to enable it in entity's customization:
If this answers your question, please check it as verified to help others finding useful information.
Welcome to this amazing community.
You have to use Xrm.WebApi.offline - docs.microsoft.com/.../offline
You need to make sure that any data you want to read in the CRUD operation has the data available offline in the mobile profile as well
Hi Gaurav,
Please check if the below javascript statements are helpful for you.
var client = Xrm.Utility.getGlobalContext().client.getClient(); // This returns client type: Web, Mobile, Outlook
var state = Xrm.Utility.getGlobalContext().client.getClientState(); // This returns client state: Online, Offline
André Arnaud de Cal...
293,278
Super User 2025 Season 1
Martin Dráb
231,983
Most Valuable Professional
nmaenpaa
101,156
Moderator