Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Cannot read property 'addGlobalNotification' of undefined

Posted on by 545

Hi Everyone,

We are exploring the possibility of using GlobalNotification (Xrm.App.addGlobalNotification) in our Dynamics 365 on-premise implementation.

Our current version is: Version 1612 (9.0.17.8) (DB 9.0.11.9) on-premises

I call below function onLoad and i noticed we received following error message:

TypeError: Cannot read property 'addGlobalNotification' of undefined

Further checking we found the Xrm.App is undefined. 

Hope someone from the Forum could advice, if the Xrm.App available in 9.0.17.8.

pastedimage1592209604878v1.png

_________________________________________________

pastedimage1592209978936v2.png

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Cannot read property 'addGlobalNotification' of undefined

    Hi Anees,

    Seems to me that you are on an On-Premise release (version 9.0).

    Xrm.App and addGlobalNotification/clearGlobalNotification were introduced to the Online version in March/April 2020 timeframe.

    You will not see this available in your version until the next major upgrade to the On-Premise version of Dynamics. I don't know exactly when that date is.

    Hope this helps.

  • Faizal Profile Picture
    Faizal 545 on at
    RE: Cannot read property 'addGlobalNotification' of undefined

    Thanx Guys...

    Yes, I'm using it in UCI...

    I wonder if this feature available in 9.0.17.8??

  • Suggested answer
    RE: Cannot read property 'addGlobalNotification' of undefined

    Hello Anees,

    As per public article - docs.microsoft.com/.../addglobalnotification it applies for model-driven apps but not sure if CRM on-premise has this functionality and please make sure you are checking it in UCI apps and not in web client as this is suppose to only work in UCI apps. Found this article - linnzawwin.blogspot.com/.../show-global-notification-on-load-of.html so just sharing with you, not sure if it would help.

    Also, I would suggest to update the DB version to match the application version as it may cause other issues in environment because of version mismatch.

  • Suggested answer
    Jomy Jose Profile Picture
    Jomy Jose 290 on at
    RE: Cannot read property 'addGlobalNotification' of undefined

    Just to confirm, are you testing in the unified interface, right ?.

    The mentioned code will work only in Unified Interface App

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans