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.

  • Suggested answer
    Kenneth Ariel Chaves Herrera Profile Picture
    on at
    RE: Dynamics 365 offline

    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.

  • Suggested answer
    Thomas David Dayman Profile Picture
    11,323 on at
    RE: Dynamics 365 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

  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at
    RE: Dynamics 365 offline

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,983 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans