Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Is it possible to show notification in any page of CRM using webresource?

Posted on by Microsoft Employee

HI,

I want to show notification in CRM. For example, if there is appointment set for 2 PM, I want to show notification at 1.50 PM on CRM screen.

Is it possible? You can suggest alternate options also. You can also suggest if CRM provide default attachments.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    -it is not requirement to use html web resource you need only java script code to display message and you can call this code from any entity form load event

    - in CRM you need entity form event ar ribbon button to call java script code so I do not think you can do that without its so I think you need to call this java script code from all entities form

    and this is crazy action

    So do not waste your time if your users have outlook do what they said else you have to create new solution in windows form to do that

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    Hi,

     you can't do it that way if you wanted this to work just anywhere in Dynamics. You might try push notifications, since they are not tied to a particular web page, but they are not supported in some browsers (such as IE/Edge):

    developer.mozilla.org/.../Push_API

     Might also try a chrome extension.. basically, within Dynamics you can't do it. So you have to think "outside the box".

     Or, as Pawel suggested, Outlook might be an option.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    for note : I mean Notification message

    for web resource you have to add it to any entity form (most use)

    you can also create windows application to de that but you need install it on all your user

    devices

    for html web resource it likes the following :

    <html><head><title></title>

       <script>

           function t() {

              // here write your code to get data from time field and if condition to display note message

               alert("notification is : aaaa");

               setTimeout(t, 2000);

           }

       </script></head>

    <body onload="t()">

    .

    .

    .

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    I have 2 queries in above solution:

    1- Where should I use web resource? If I add above function in "testNotification.html", alert will display on same page.

    2- What is NOTE? I know NOTE(Attachment) section of appointment form but I am not getting what is note in your answer.

    Note: I want to show notification on CRM screen regardless of form. User must be able to see notification even if he is on solution page or create sales order page.

    Please let me know if you have confusion, I will explain if needed.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    you can do the following :

    1- create html web resource and inside it write function to get data from time field in appointment and display the note

    2- create another function that have timer for 1 second and inside it call the first function

    3- finally add this web resource to entity form

    so now each 1 second the timer will execute and will execute the first function that will display the note regards to the time

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    Well, I am doing this already. But what if that form or webresource is not open at the time of alert? Notification regardless of form and webresource. Let me know if there is such way.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    it is easy

    create java script function that will get the appointment time field and then display notification alert message befor ten minutes of that time

    but you have to decide where you need to display this message you can only display it in entity form

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: Is it possible to show notification in any page of CRM using webresource?

    This is not possible in a supported way, but in my opinion you are misusing CRM. Outlook is a tool for what you are trying to achieve. Creating a proper activity in CRM and then implementing activities synchronization with Outlook can do the trick for such scenarios.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans