cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jbrit2020
Continued Contributor
Continued Contributor

New Message notification

I've created these app chats where teams can interact about each record in a given gallery.

 

It works great to track history log of each record, the only thing im missing is a way to create a notification icon on the app that will make people aware when a record has a new message.

 

Creating the icon and message count is fine, my issue is the acknowledging part.

 

When a user, "Carl" for example clicks on the notifications icon where there's a red circle with the number of Notifications, I want that notification to clear for "Carl" but not for the rest of the users that have not clicked on it yet.

 

How would I go about doing this? The only idea that comes to mind is creating a table where each new row will be created with the message ID and the name of the person who clicked on the Notifications icon, but if we're talking about thousands and thousands of messages and 100 users, this table will grow a LOT very quickly. Any suggestions?

 

1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

Power Apps doesn't use cookies so you will have to do a table of some sort.   My suggestion would be to have a datasource that is queried on App start.  This is a broad overview of what I am thinking might work.

 

One line for each person.   A LastRead Date/Time column.   On Appstart you query the messages and the datasource for the person.  What you are looking to do is count if there are new messages since the LastRead and if there are, then the message icon is present.

 

Once the user clicks on the messages Icon it sets the LastRead to Now().   This way if there are new messages since the last Date/Time the column was updated it will show the icon.

 

This requires only static row per user.   You update the LastReadDate each time.  

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
JR-BejeweledOne
Super User
Super User

Power Apps doesn't use cookies so you will have to do a table of some sort.   My suggestion would be to have a datasource that is queried on App start.  This is a broad overview of what I am thinking might work.

 

One line for each person.   A LastRead Date/Time column.   On Appstart you query the messages and the datasource for the person.  What you are looking to do is count if there are new messages since the LastRead and if there are, then the message icon is present.

 

Once the user clicks on the messages Icon it sets the LastRead to Now().   This way if there are new messages since the last Date/Time the column was updated it will show the icon.

 

This requires only static row per user.   You update the LastReadDate each time.  

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
JR-BejeweledOne
Super User
Super User

You can check this out.    It's the same concept.  In your case you will need 2 columns.   One to identify the user and the second for the LastRead Date/Time.

 

https://powerusers.microsoft.com/t5/Power-Apps-Community-Blog/Power-Apps-and-Cookies-Not-the-kind-yo...



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,719)