web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics 365 offline

(0) ShareShare
ReportReport
Posted on by 10

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.

I have the same question (0)
  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at

    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

  • Suggested answer
    Thomas David Dayman Profile Picture
    11,323 on at

    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

  • Suggested answer
    Kenneth Ariel Chaves Herrera Profile Picture
    on at

    Hi,

    To make sure you can crud entities offline, just make sure to enable it in entity's customization:

    pastedimage1631203304611v1.png

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans