Solved: In-app Notifications in Model Driven App

Solved: In-app Notifications in Model Driven App

Problem Description

So, you want to enable custom notifications in your model-driven app. You go into the app settings, navigate to the 'Features' tab, and toggle on the in-app notifications.

As the system administrator, you see the bell notification bell icon appear in the app.

But that’s not enough because when your standard users log in, the icon is nowhere to be found.

Root Cause: Permissions and Security Roles

When I asked my 10 year old son Pranav Khurana what he thought could be the root cause, he immediately replied, "Security Roles!" and he was right. 😀

The root cause of this issue lies in permissions and security roles. As an administrator, you may not face this problem, but standard users require specific privileges to view and interact with the notification centre.

Step-by-Step Solution

  • In the security settings of your Power Platform environment, identify the security roles assigned to standard users who are experiencing the issue.
  • Locate the ‘Notification’ table privileges under ‘Custom Tables’ section

  • Assign ‘Read’ privilege to the ‘Notification’ table and press the ‘Save’ button.


That’s not all because when you refresh the screen at the front end, you’d notice that although the bell icon is now visible to the standard users, there lies another problem – an error message.

For the users to receive in-app notifications, you’d need to go back to the security role and make a couple of changes.

  • Locate the ‘Model-Driven App User Setting’ table and assign the ‘Create’, ‘Read’, ‘Write’ and ‘Append’ permissions to it.



  • Locate the ‘Setting Definition’ table, assign the ‘Read’ and ‘Append to’ privileges to it and press the ‘Save’ button to save the changes



You’d now notice that the ‘Failed to get notifications’ error is gone.

Your standard users are now ready to receive notifications. Happy days!! 😀

Lokesh Singara

Data Engineer at Van Oord

5mo

Hi Mr. Gulshan Khurana, Is it available in the Canvas App as well?

Like
Reply
Sean Astrakhan

Solutions Architect | YouTuber | Team Lead | Microsoft MVP

5mo

Thanks for the reminder! We have to set this up in a few weeks so glad I saw this.

Charles Sexton

Power Platform Solutions Architect | Microsoft MVP | Blogger | YouTuber | Speaker

5mo

It sounds like Pranav Khurana is a great co-pilot. 👨✈️

Parvez Ghumra

Microsoft Business Applications MVP | Power Platform | Dynamics 365 CE | Azure - Developer | Technical Consultant | Technical Architect | Community Super User | User Group Co-Organizer | Blogger

5mo

Nice explanation Gulshan. People often forget about the security model design for the functionality they build. This is a great example of why it's important

To view or add a comment, sign in

Insights from the community

Others also viewed

Explore topics