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.
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
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.
Hello,
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.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156