Announcements
No record found.
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 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
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,
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.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 128 Super User 2026 Season 1
11manish 113
Muhammad Shahzad Sh... 69 Most Valuable Professional