Skip to content

Commit 7164ee4

Browse files
committed
Published the add notify me settings to category in Bulletins app
1 parent c0674e1 commit 7164ee4

13 files changed

+196
-0
lines changed
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
---
2+
3+
title: How to add "notify me" settings to category in Bulletins app
4+
description: Learn about how to customize the Bulletins app to add "notify me" settings to category
5+
author: sbahl10
6+
ms.service: powerapps
7+
ms.topic: conceptual
8+
ms.custom:
9+
ms.date: 06/02/2021
10+
ms.author: v-shrutibahl
11+
ms.reviewer: tapanm
12+
contributors:
13+
14+
- v-ljoel
15+
16+
---
17+
18+
# Bulletins App – Add "notify me" settings to category
19+
20+
The Bulletins Power App Template for Microsoft 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.
21+
22+
The Bulletins app solution consists of two apps:
23+
24+
[**Manage bulletins app**](https://docs.microsoft.com/en-us/powerapps/teams/bulletins#manage-bulletins-app)
25+
26+
- Manager experience for managing **Bulletins** app.
27+
28+
- Allows managers to create, edit, and categorize posts read through the Bulletins app.
29+
30+
[**Bulletins app**](https://docs.microsoft.com/en-us/powerapps/teams/bulletins#bulletins-app)
31+
32+
- Central ___location for all company communication such as memos, broadcasts, and news.
33+
34+
- Shows bulletins, FAQs, links, and contacts created using the **Manage bulletins** app.
35+
36+
In this topic we will learn how to add functionality where the user can select for which categories they should get notified when bulletins get added send an email notification using Power Automate flow, when a new bulletin is created.
37+
38+
Employees are very busy, and 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 things that don’t apply to them. By allowing users to opt in to notifications, they can subscribe to the topics that are relevant for them and be notified about things that matter most to them.
39+
40+
> NOTE: before starting this topic, please review **How to customize Bulletins **(insert link).
41+
42+
## Prerequisites
43+
44+
To complete this lesson, we would need the ability to log in into Microsoft Teams which will be available as part of select Microsoft 365 subscriptions and
45+
will also need to have the Bulletins Power Apps template for Microsoft Teams installed. This app can be installed from aka.ms/TeamsBulletins (confirm link).
46+
47+
## Create a new table called Bulletin Notifications
48+
49+
To get started, let’s add a table to store the notification settings.
50+
51+
1. Select the Power Apps button from the left navigation menu in Teams.
52+
53+
2. Go to the Build tab and select Built by this team tab.
54+
55+
3. Select the See all hyperlink under list of all items created to open the list of all the Objects used in all the apps that are installed and created
56+
in the selected Team.
57+
58+
4. Select the +New -\> Table.
59+
60+
5. Enter the Table name Bulletin Notifications.
61+
62+
6. The table gets created.
63+
64+
7. Open the table and open the Name field of the table.
65+
66+
8. Change Data type to Autonumber.
67+
68+
9. Set Minimum number of digits = 4 and Seed value = 1000.
69+
70+
10. Select the Add column on the top.
71+
72+
- Enter Display Name = User ID.
73+
74+
- Select Data type = Lookup.
75+
76+
- Select Related table = User.
77+
78+
- Hit the Done button at the bottom.
79+
80+
11. Select the Add column on the top.
81+
82+
- Enter Display Name = Category.
83+
84+
- Select Data type = Lookup.
85+
86+
- Related table = Bulletin Category.
87+
88+
- Hit the Done button at the bottom.
89+
90+
## Add a Toggle control to turn notifications on and off
91+
92+
1. Select the Power Apps button from the left navigation menu in Teams.
93+
94+
2. Go to the Build tab and select Installed apps.
95+
96+
3. Open the Bulletins app.
97+
98+
4. From the Tree view, select the Home screen.
99+
100+
5. Select galBulletins_ByCategory from the tree view.
101+
102+
6. Select the Insert option from the left navigation menu.
103+
104+
7. Select Input -\> Toggle.
105+
106+
8. The Toggle control gets added to the gallery.
107+
108+
9. Set the following properties on the Toggle.
109+
110+
- X = Parent.Width - Self.Width
111+
112+
- Y = lblGalBulletins_ByCategory_Name.Y
113+
114+
- On Text = Turn off notifications
115+
116+
- Off Text = Turn on notifications
117+
118+
- Width = 200
119+
120+
- Height = lblGalBulletins_ByCategory_Name.Height
121+
122+
- OnCheck = Patch('Bulletin Notifications',{Category: LookUp('Bulletin Categories', 'Bulletin Category' = ThisItem.appCategoryGUID),'User
123+
ID':gblUserRecord})
124+
125+
- OnUncheck = Remove('Bulletin Notifications',LookUp('Bulletin Notifications',Category.'Bulletin Category'=ThisItem.appCategoryGUID&&'User ID'.User=gblUserRecord.User))
126+
127+
- Checked = !IsBlank(LookUp('Bulletin Notifications', Category.'Bulletin Category' = ThisItem.appCategoryGUID && 'User ID'.User =
128+
gblUserRecord.User))
129+
130+
## Publish the Bulletins App
131+
132+
1. All the changes to the Bulletins app are completed.
133+
134+
2. The app can now be published by selecting the Publish to Teams button on the top right.
135+
136+
![Publish to Teams](media/add-notify-me-settings-to-category/publish-to-teams.png "Publish to Teams")
137+
138+
## Create Power Automate Flow to send email notification
139+
140+
1. Select the Power Apps button from the left navigation menu in Teams.
141+
142+
2. Go to the Build tab and select Built by this team tab.
143+
144+
3. Select the See all hyperlink under list of all items created to open the list of all the Objects used in all the apps that are installed and created in the selected Team.
145+
146+
4. Select the +New -\> Cloud flow -\> Automated.
147+
148+
5. Enter Flow name = Send notification based on Notification flag when a new bulletin is created.
149+
150+
6. Select the trigger – When a new row is added, modified or deleted.
151+
152+
7. Create the flow with the steps as shown below.
153+
154+
8. Save the flow.
155+
156+
![Add notify me settings to category](media/add-notify-me-settings-to-category/flow-trigger-and-get-category-step.png "Add notify me settings to category")
157+
158+
![](media/add-notify-me-settings-to-category/filter-bulletins-by-category-step.png)
159+
160+
![Send email step for each category](media/add-notify-me-settings-to-category/send-email-step-for-each-category.png "Send email step for each category")
161+
162+
## Test the app
163+
164+
1. Login into Teams and navigate to Team where the Bulletins app is installed.
165+
166+
2. Select the Bulletins tab on the top.
167+
168+
3. The Bulletins app opens.
169+
170+
4. Verify that the Turn on notifications toggle shows up on the top right of each row of the categories gallery.
171+
172+
5. Select the Turn on notifications toggle to turn notifications on for the particular categories.
173+
174+
![Add notify me settings to category](media/add-notify-me-settings-to-category/bulletins-turn-on-notifications.png "Add notify me settings to category")
175+
176+
6. Now, select the Manage Bulletins tab on the top.
177+
178+
7. Select the New Bulletin button on the top right.
179+
180+
8. The New bulletin screen appears.
181+
182+
9. Select the Category for which you want the bulletin created – Customer Updates.
183+
184+
10. Enter a title in the Add title text box – Upcoming Offers.
185+
186+
11. Enter a subtitle in the Add subtitle text box – Summer offers for customers.
187+
188+
12. Enter a description in the big text box – This Bulletin will list all the upcoming summer offers for customers.
189+
190+
13. Hit the Save button on top.
191+
192+
14. Then hit the Publish button.
193+
194+
15. In a few minutes, an email as shown in the image below should appear in the inbox of the email address provided in the Power Automate flow.
195+
196+
![New bulletin creation notification email](media/add-notify-me-settings-to-category/new-bulletin-creation-notification-email.png "New bulletin creation notification email")
48.7 KB
Loading
56.3 KB
Loading
28.4 KB
Loading
104 KB
Loading
300 KB
Loading
31.5 KB
Loading
21.9 KB
Loading
52.9 KB
Loading
4 KB
Loading

0 commit comments

Comments
 (0)