Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello All,

I would like some advice on creating toast notifications in dynamics 365 unified interface.

I have done some searches in the forum and MS documentation, it seems that there are no out of the box feature that allow me to create toast notification within a solution.

Does this mean that the standard way to create toast notification is using injecting JavaScript to a control I want to have a toast notification as feedback?

Thanks for the help in advance.

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    Hi Amir,

    The addGlobalNotification client API only officially supports "type: 2", which is a message bar notification.
    If you change it to "type: 1", it displays a toast notification.

    Be aware that because type: 1 isn't documented, it isn't supported and could change without notice.

    Henry

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    Hey Henry,

    SetNotification displays a message on the top of the form, not like the message you already have shown. Can you share your API implemented through Javascript?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    Yes, the screenshot is the desired result that I want from a toast notification.

    Do you have an idea when the api function will be available?

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    So would the screenshot I shared help (just for the notification format)?

    Right now you could also use the setFormNotification method to display a message and clear it after a few seconds, with clearFormNotification.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    my use case will be a button triggering an api call that will come back with a response whether if its successful and the message for the toast notification to display.

    Thank you

  • Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    I mean that even though the JavaScript method technically exists to display this type of notification, it is not yet generally available and not documented (so not supported).

    What would be your use case?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    Thank you for your response,

    does this mean it is not yet ready to be use yet?

    What is the api function for toast notification?

    Thank you

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: How to create toast notifications in Microsoft Dynamics 365 Unified Interface?

    Hi Wilson,

    There is a new client API that hasn't been documented yet, to display Toast Notifications.

    It's a temporary message displayed at the bottom of the current screen.

    Example:

    pastedimage1580302212903v2.png

    I can update this thread once the documentation is ready.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans