Add "Notify me" settings to category
The Bulletins Power App Template for Teams provides a central location for all company communication such as broadcasts, memos, announcements, and company news. The app allows you to create, categorize, bookmark, search, and read bulletin posts.
Watch this video to add "Notify me" settings to category:
The Bulletins app solution consists of two apps:
Manager experience for managing Bulletins app.
Allows managers to create, edit, and categorize posts read through the Bulletins app.
Central location for all company communication such as memos, broadcasts, and news.
Shows bulletins, FAQs, links, and contacts created using the Manage bulletins app.
In this article, we'll learn how to add functionality where the user can select for which categories they should get notified when bulletins get added, and send an email notification using Power Automate flow, when a new bulletin is created.
When users are busy, excessive notifications can be a distraction. Users want to know when relevant announcements and news are posted, but they don’t want to be distracted by the noise of information about areas that don’t apply to them. By allowing users to opt in to notifications, they can subscribe to the areas that are relevant for them, and be notified about what matter most to them.
Note
Before you proceed, review customize Bulletins app.
Prerequisites
To complete this lesson, we'd need the ability to log in into Teams that will be available as part of select Microsoft 365 subscriptions, and will also need to have the Bulletins Power Apps template for Teams installed. This app can be installed from https://aka.ms/TeamsBulletins.
Create a new table called Bulletin Notifications
To get started, let’s add a table to store the notification settings.
Select Power Apps from the left-pane in Teams.
Go to Build > Built by this team.
Select See all under list of all items created to open the list of all the objects used in all the apps created in the selected team.
Select the + New > Table.
Enter the table name as "Bulletin Notifications".
Open the table, and open the Name field of the table.
Change data type to autonumber.
Set the minimum number of digits to 4, and the seed value as 1000.
Using Add column on the top, add the following columns.
Column name Data type Related table User ID Lookup User Category Lookup Bulletin Category
Add a toggle control to turn the notifications on and off
In the Bulletins app.
From the Tree view, select the Home screen.
Select galBulletins_ByCategory from the tree view.
Select Insert > Input > Toggle.
Set the following properties on the added toggle control.
Property Value X Parent.Width - Self.WidthY lblGalBulletins_ByCategory_Name.YOn Text Turn off notifications Off Text Turn on notifications Width 200 Height lblGalBulletins_ByCategory_Name.HeightOnCheck Patch('Bulletin Notifications',{Category: LookUp('Bulletin Categories', 'Bulletin Category' = ThisItem.appCategoryGUID),'UserID':gblUserRecord})OnUnCheck Remove('Bulletin Notifications',LookUp('Bulletin Notifications',Category.'Bulletin Category'=ThisItem.appCategoryGUID&&'User ID'.User=gblUserRecord.User))Checked !IsBlank(LookUp('Bulletin Notifications', Category.'Bulletin Category' = ThisItem.appCategoryGUID && 'User ID'.User = gblUserRecord.User))
Publish the Bulletins App
All the changes to the Bulletins app are completed. The app can now be published by selecting Publish to Teams on the top-right.

Create Power Automate flow to send email notification
Open Power Apps in Teams.
Go to Build > Built by this team.
Select See all.
Select + New > Cloud flow > Automated.
Enter the flow name as "Send notification based on the notification flag when a new bulletin is created".
Select the trigger as When a new row is added, modified, or deleted.
Create the flow with the steps explained in the following screens.



Save the flow.
Test the app
Log in into Teams, and go to the team where the Bulletins app is installed.
Select the Bulletins app.
Select the Turn on notifications toggle to turn on notifications for the particular categories.

Now, select the Manage Bulletins tab on the top.
Select New Bulletin on the top-right.
Select the category for which you want the bulletin created, such as "Customer Updates".
Enter a title, such as "Upcoming Offers".
Enter a subtitle, such as "Summer offers for customers".
Enter a description, such as "This Bulletin will list all the upcoming summer offers for customers".
Select Save, and Publish.
In a few minutes, an email as shown in the image below should appear in the inbox of the email address that was provided in the Power Automate flow.
