Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 137 Super User 2025 Season 2
#ManoVerse 57
Jimmy Passeti 50 Most Valuable Professional