Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Offline JavaScript and Offline Mobile Profile - avoiding script errors without internet?

(0) ShareShare
ReportReport
Posted on by 70

Hi all,

Can you tell me your experience using JavaScript with Field Service Mobile (Dynamics) and the Offline Profile?

We're getting ready to roll our Offline Profile out, but I'm finding JavaScript to be a potential barrier to user adoption. It seems that a user must run through every JavaScript trigger once Online, before running into an Offline scenario - otherwise they get script errors. Anyone else find this to be true?

This should be fine for users who have good cellular/network access, however I'm concerned users who work only in spotty network areas will struggle to download all the JavaScript prior to working offline. 

Also, If users "Reconfigure" it appears their JavaScript is wiped, so the whole process starts over again.

Is it not really as big a deal as I anticipate?

Thanks in advance!

  • AllThingsMS Profile Picture
    AllThingsMS 70 on at
    RE: Offline JavaScript and Offline Mobile Profile - avoiding script errors without internet?

    Thank you, but this is not a verified answer.

    I'm looking for experience from those who have implemented Offline JavaScript on FS Mobile forms and whether they find users must run through each JavaScript trigger once Online before losing network, or risk getting script errors.

    Based on my understanding of the documentation: docs.microsoft.com/.../mobile-offline-capabilities, JavaScript on forms should not have to be downloaded online first, but I am finding this is not the case.

    "Web resource configuration Offline support on Android Offline support on iOS

    Web resource used on form handlers, form scripts and ribbon commands Supported (File names should be in lower case) Supported (file names need should be in lower case)"

    Instead it is behaving like this:

    "JavaScript files referenced within an HTML web resource Supported Partially supported: The web resource needs to be opened at least once you are in online mode so that it's cached by your browser. Then it is handled for lifetime and or availability." 

    Would like to confirm what the experience should be so I can better assist users.

  • Nya Profile Picture
    Nya 29,058 on at
    RE: Offline JavaScript and Offline Mobile Profile - avoiding script errors without internet?

    Hi,

    Here is the official documentation about it:

    Create workflows and scripts for the Field Service (Dynamics 365) mobile app | Microsoft Docs

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans