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

Javascript Unified Interface issue

(0) ShareShare
ReportReport
Posted on by 1,088

Hi Partners, 

I'm having an issue and I don't figure out what could be. 

In my Dynamics 365 for CE online, I have a Unified Interface, on lead entity sometimes the Javascript works fine other not. so then my Javascrits functions stop working.

pastedimage1566926117658v1.png

at line 9 sometimes says "it can't read property addOnChange of null" but the field "rs_principal" exists and I'm not writing wrong, because sometimes it works well. (refreshing f5) even in other devices.

I'm using chrome. but with another browser happens the same , sometimes works other not. 

Can anyone help me? 

Dynamics 365 Online

Server Version: 9.1.0000.7625

Client Version: 1.3.2119-190813-224452

Thanks, regards. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    Can you see if changing from Xrm.Page.getAttribute to formContext.getAttribute changes the behavior?

    Take a look at the following link for using the new Client API reference:

    docs.microsoft.com/.../attributes

    Hope this helps.

  • PabloCRP Profile Picture
    1,088 on at

    Hi Aric Levin,

    Yes, the behavior changes, Idk why on common Interface works well but it seems that in Unified Interfaces forces you to pass a context because of Xrm.Page is obsolete. Thank you.

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at
  • Matthew Tweed Profile Picture
    10 on at

    Xrm.Page is deprecated syntax and therefore will throw errors in UCI, if you change this to formContext it should change the behaviour as it is supported syntax.

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans