Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Display Message or Alert First Time User Logs In Daily

Posted on by 279

Is there anyway to have a message or alert via JS or Plugin run the first time a user logs in for the day?

For example, once a day for the first time a user logs in or loads the CRM, I want a message to appear with certain information via a dialog or alert box on the screen but only for certain users/types of users. This loading page wouldn't be on any particular form but likely the default subarea for the app, usually Contacts.

  • Lucas H Profile Picture
    Lucas H 279 on at
    RE: Display Message or Alert First Time User Logs In Daily

    Thank you, this is perfect!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Display Message or Alert First Time User Logs In Daily

    Hi Licas,

    You can achieve this by addGlobalNotification client API. 

    The solution is to create a hidden button in Global Tab (where the Quick Create, Advanced Find and Settings menu are located) and call the JavaScript function using CustomRule of the button Enable Rule. Use a global variable to make sure the global notification is not being added multiple times and clear the global notification on button click.

    By calling addGlobalNotification client API from the Custom Enable Rule of the hidden button in Global Tab, we can show the startup notification to the user as soon as the user logs in to the model-driven app.

    (+) Show Notification On User Login - Dynamics 365 General Forum Community Forum

    (+) Show Global Notification on Load of Model-driven App in Dynamics 365 - Microsoft Dynamics 365 Community

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans