cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jbrit2020
Responsive Resident
Responsive Resident

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.

View solution in original post

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,786)