web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Cannot read property 'addGlobalNotification' of undefined

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Jomy Jose Profile Picture
    290 on at

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

    The mentioned code will work only in Unified Interface App

  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    Microsoft Employee on at

    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.

  • Faizal Profile Picture
    545 on at

    Thanx Guys...

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

    I wonder if this feature available in 9.0.17.8??

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 121

#2
ManoVerse Profile Picture

ManoVerse 71 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans