Skip to content

Commit 4a8ccf9

Browse files
authored
Merge pull request MicrosoftDocs#4747 from MicrosoftDocs/v-shrutibahl-add-notify-me-settings-to-category
Published the add notify me settings to category in Bulletins app
2 parents 95dc692 + 15a6f0c commit 4a8ccf9

8 files changed

+165
-0
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,8 @@
22202220
href: ../teams/customize-bulletins.md
22212221
- name: Send an alert when a new bulletin is posted
22222222
href: ../teams/new-bulletin-alert.md
2223+
- name: Add "Notify me" settings to category in Bulletins app
2224+
href: ../teams/bulletins-notify-me.md
22232225
- name: Employee ideas
22242226
items:
22252227
- name: Use Employee ideas sample app
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
---
2+
title: Add "Notify me" settings to category in Bulletins app
3+
description: Learn about how to customize the Bulletins app to add "Notify me" settings to category
4+
author: sbahl10
5+
ms.service: powerapps
6+
ms.topic: conceptual
7+
ms.custom:
8+
ms.date: 07/09/2021
9+
ms.author: v-shrutibahl
10+
ms.reviewer: tapanm
11+
contributors:
12+
- joel-lindstrom
13+
- navjotm
14+
- tapanm-msft
15+
- sbahl10
16+
---
17+
18+
# Add "Notify me" settings to category
19+
20+
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.
21+
22+
The Bulletins app solution consists of two apps:
23+
24+
[Manage bulletins app](bulletins.md#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](bulletins.md#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 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.
37+
38+
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.
39+
40+
> [!NOTE]
41+
> Before you proceed, review [customize Bulletins app](customize-bulletins.md).
42+
43+
## Prerequisites
44+
45+
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>.
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 **Power Apps** from the left-pane in Teams.
52+
53+
1. Go to **Build** > **Built by this team**.
54+
55+
1. 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.
56+
57+
1. Select the **+ New** > **Table**.
58+
59+
1. Enter the table name as "Bulletin Notifications".
60+
61+
1. Open the table, and open the **Name** field of the table.
62+
63+
1. Change data type to autonumber.
64+
65+
1. Set the minimum number of digits to 4, and the seed value as 1000.
66+
67+
1. Using **Add column** on the top, add the following columns.
68+
69+
| Column name | Data type | Related table |
70+
| - | - |
71+
| User ID | Lookup | User |
72+
| Category | Lookup | Bulletin Category |
73+
74+
## Add a toggle control to turn the notifications on and off
75+
76+
1. In the Bulletins app.
77+
78+
1. From the **Tree view**, select the **Home** screen.
79+
80+
1. Select **galBulletins_ByCategory** from the tree view.
81+
82+
1. Select **Insert** > **Input** > **Toggle**.
83+
84+
1. Set the following properties on the added toggle control.
85+
86+
| Property | Value |
87+
| - | - |
88+
| X | `Parent.Width - Self.Width` |
89+
| Y | `lblGalBulletins_ByCategory_Name.Y` |
90+
| On Text | Turn off notifications |
91+
| Off Text | Turn on notifications |
92+
| Width | 200 |
93+
| Height | `lblGalBulletins_ByCategory_Name.Height` |
94+
| OnCheck | `Patch('Bulletin Notifications',{Category: LookUp('Bulletin Categories', 'Bulletin Category' = ThisItem.appCategoryGUID),'UserID':gblUserRecord})` |
95+
| OnUnCheck | `Remove('Bulletin Notifications',LookUp('Bulletin Notifications',Category.'Bulletin Category'=ThisItem.appCategoryGUID&&'User ID'.User=gblUserRecord.User))` |
96+
| Checked | `!IsBlank(LookUp('Bulletin Notifications', Category.'Bulletin Category' = ThisItem.appCategoryGUID && 'User ID'.User = gblUserRecord.User))` |
97+
98+
## Publish the Bulletins App
99+
100+
All the changes to the Bulletins app are completed. The app can now be published by selecting **Publish to Teams** on the top-right.
101+
102+
![Publish to Teams](media/add-notify-me-settings-to-category/publish-to-teams.png "Publish to Teams")
103+
104+
## Create Power Automate flow to send email notification
105+
106+
1. Open Power Apps in Teams.
107+
108+
1. Go to **Build** > **Built by this team**.
109+
110+
1. Select **See all**.
111+
112+
1. Select **+ New** > **Cloud flow** > **Automated**.
113+
114+
1. Enter the flow name as "Send notification based on the notification flag when a new bulletin is created".
115+
116+
1. Select the trigger as **When a new row is added, modified, or deleted**.
117+
118+
1. Create the flow with the steps explained in the following screens.
119+
120+
![Change type - Create, Table name - Bulletins, Scope - Organization, Table name - Bulletin Categories, Row ID - Category(Value)](media/add-notify-me-settings-to-category/flow-trigger-and-get-category-step.png "Flow trigger and Get Category step")
121+
122+
![Table name - Buletin Notifications - Filter rows - Bulletin Category](media/add-notify-me-settings-to-category/filter-bulletins-by-category-step.png "Filter bulletins by category step")
123+
124+
![Apply to each - output from previous step as value, Get a row by ID - Table name - Users, Row ID - User ID (Value), Send an email (V2), To - Primary Email, Subject - enter your choice of subject for email, Body - Enter your body text and use Title and Name category for bulletins](media/add-notify-me-settings-to-category/send-email-step-for-each-category.png "Send email step for each category")
125+
126+
1. Save the flow.
127+
128+
## Test the app
129+
130+
1. Log in into Teams, and go to the team where the Bulletins app is installed.
131+
132+
1. Select the **Bulletins** app.
133+
134+
1. Select the Turn on notifications toggle to turn on notifications for the particular categories.
135+
136+
![Bulletins turn on notifications](media/add-notify-me-settings-to-category/bulletins-turn-on-notifications.png "Bulletins turn on notifications")
137+
138+
1. Now, select the **Manage Bulletins** tab on the top.
139+
140+
1. Select **New Bulletin** on the top-right.
141+
142+
1. Select the category for which you want the bulletin created, such as "Customer Updates".
143+
144+
1. Enter a title, such as "Upcoming Offers".
145+
146+
1. Enter a subtitle, such as "Summer offers for customers".
147+
148+
1. Enter a description, such as "This Bulletin will list all the upcoming summer offers for customers".
149+
150+
1. Select **Save**, and **Publish**.
151+
152+
1. 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.
153+
154+
![New bulletin creation notification email](media/add-notify-me-settings-to-category/new-bulletin-creation-notification-email.png "New bulletin creation notification email")
155+
156+
### See also
157+
158+
- [Understand Bulletins sample app architecture](bulletins-architecture.md)
159+
- [Customize Bulletins app](customize-bulletins.md)
160+
- [Sample apps FAQs](sample-apps-faqs.md)
161+
- [Use sample apps from the Microsoft Teams store](use-sample-apps-from-teams-store.md)
162+
163+
[!INCLUDE[footer-include](../includes/footer-banner.md)]
Loading

0 commit comments

Comments
 (0)