Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : uKqAc6vjpcLKGmcCDC11Gq
Microsoft Dynamics CRM (Archived)

How to set a Notification / Message on Portal Pages

Like (0) ShareShare
ReportReport
Posted on 16 Jan 2019 10:41:37 by 105

Is there any OOB Method to set a Notification / Message on Portal Pages

*This post is locked for comments

  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on 30 May 2019 at 08:38:02
    RE: How to set a Notification / Message on Portal Pages

    hi Mateusz

    {{notificationUrl}} is basically a variable for my notifications view page.. you can also hardcode or use siteMarker for this.. but for making it simple you can have directly your page, example: /my-notifications

    in my scenario this notification page is basically an entity list showing the notifications of the current logged in user

    you don't need to create a new web template.. unless you want something specific as rendering.. in my case I am using OOB "Full Page" web template.. and displaying as a list

    the "17" notifications like I mentioned in the previous comment, I have a FetchXML in my Header Web Template so I can get the count of records

    I've seen some blog posts also with another approach.. which you actually store the notification count within the Contact record (this can be a rollup field probably).. but I decided to go for the fetch

  • Mateusz Wegrzyn Profile Picture
    on 29 May 2019 at 21:38:04
    RE: How to set a Notification / Message on Portal Pages

    Hi Oliver,

    Could you provide an example how should looks a custom Notification entity? How to connect custom Notification entity with your code above? Shall I replace the {{notificationUrl}} ?

    I need to create a new web template where I display notifications from notifications entity? On your screen you have info about new '17' notifications how to achieve similar effect?

    Could present one example?

    Thank you in advance!

  • Verified answer
    oliver.rodrigues Profile Picture
    4,052 on 16 Jan 2019 at 12:52:03
    RE: How to set a Notification / Message on Portal Pages

    as far as I know, there is no OOB feature for this

    you can create a custom Notification entity to create your notifications

    in the Portal Header Web Template (after the profile navigation menu), you can add a FetchXML to retrieve this records and show a bell icon (or any custom icon)

    {% assign countNotification = query.results.entities.size %}

       <li>

        <a class="navbar-icon" href="{{notificationUrl}}" role="button" aria-haspopup="true" aria-expanded="false" aria-label="{{ snippets["Header/Notification/ToolTip"] }}" >

       <span class="glyphicon glyphicon-bell"></span><span id="notificationcount" class="badge badge-pill badge-danger">{{ countNotification }} </span> 

       </a>

    </li>

    4064.notification.PNG

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on 16 Jan 2019 at 12:50:41
    RE: How to set a Notification / Message on Portal Pages

    Hi,

    No there is not out of the box but you can add a panel/div and show your message on the portal pages using Jquery.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,325 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,223 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading started