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 :
Microsoft Dynamics CRM (Archived)

Upgrading JavaScript from v8.2 On Premise to v9 Online

(0) ShareShare
ReportReport
Posted on by 255

I am migrating from 8.2 On Premise to v9 Online.

I have run the Dynamics 365 V9 Javascript Validator in the XrmToolbox and can see a number of issues. 

They are:

  1. Method Xrm.Page must be replace with ExecutionContext.getFormContext
  2. Method Xrm.Page.context must be replace with Xrm.Utility.getGlobalContext
  3. Method Xrm.Page.context.getUserId must be replace with globalContext.userSettings.userId
  4. Method Xrm.Page.context.getUserName must be replace with globalContext.userSettings.userName
  5. Method confirmDialog must be replace with Xrm.Navigation.openConfirmDialog
  6. Method alertDialog must be replace with Xrm.Navigation.openAlertDialog
  7. Method openEntityForm must be replace with Xrm.Navigation.openForm
  8. A SOAP messages is detected. This must be replace with Use a custom control

To me it looks like 1-7 all relate to the deprecation of Xrm.Page.  Looking at the documentation it is not 100% clear that this is the case for all 7 and wanted to check with the forum that my plan to push the solutions into v9 will be fine and that we can update all these issues post migration without anything breaking?

There are numerous instances of no 8 on our solution.  The English in the tool is not great.  My expectation would be that these SOAP elements will work also but that there is likely a newer technique that would be recommended.  Again can I deal with these in the future, post migration?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Dynamics365 Rocker Profile Picture
    7,755 on at

    Go to below link and read each topic. It will give you better idea:

    docs.microsoft.com/.../reference

  • Verified answer
    Kokulan Profile Picture
    18,054 on at
  • gordonj Profile Picture
    255 on at

    Thank you guys.  Those are some really useful resources for understanding the new model.

    As far as I can tell the existing code will continue to work through the migration for the time being.  That means my first step will be to migrate and I can expect our system to continue to function.

    Then we can plan out updating the deprecated code.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans