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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 113

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans