Skip to content

Commit fdc8364

Browse files
authored
Merge pull request #20 from pnp/alexc-msft/reporting-and-bugfixes
Bug fixes and reporting functionality
2 parents 7e095b9 + ca9b4bf commit fdc8364

File tree

5 files changed

+63
-9
lines changed

5 files changed

+63
-9
lines changed

Documentation/Architecture.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ The app can be customized if you wish, though it's worth noting that customizati
4747

4848
Integration with Prompt Buddy is provided through a single flow (details can be found below) which adds Prompt Buddy prompts to the **Prompts** list and Prompt Pulse prompts to the relevant dataverse tables used by Prompt Buddy. This keeps both solutions in sync and ensures prompts can be accessed from both apps.
4949

50+
## Reporting
51+
52+
Basic reporting can be found in the **Reporting** list in the form of a single list item. This list item is created automatically if it does not exist by the app and flows.
53+
54+
If multiple list items exist in this list, only the first item is updated in terms of the numeric data.
55+
5056
# Flows
5157

5258
Detailed information about the flows used in the solution can be found below:
@@ -125,7 +131,7 @@ This flow is triggered on a recurrent scheduled inside the Dataverse for Teams e
125131

126132
## Data Source
127133

128-
As detailed in the [Overview](Overview.md) documentation, there are 3 SharePoint lists used in prompt pulse. Please see the details of each list below and what each column is used for:
134+
As detailed in the [Overview](Overview.md) documentation, there are 4 SharePoint lists used in prompt pulse. Please see the details of each list below and what each column is used for:
129135

130136
### Prompts list
131137

@@ -162,4 +168,12 @@ As detailed in the [Overview](Overview.md) documentation, there are 3 SharePoint
162168
| -------- | ------- | ------- |
163169
| Value | Single line of text | The configuration value.
164170

171+
### Reporting list
172+
173+
| Column Name | Type | Used for |
174+
| -------- | ------- | ------- |
175+
| PromptsSent | Number | The number of prompts sent in Prompt Pulse either directly or via scheduling.
176+
| AppLaunches | Number | The number of times the app has been launched/opened.
177+
| PromptsCopied | Number | The number of times prompts have been copied (clicking the prompt card) in the app.
178+
| PromptsLiked | Number | The total of prompts that have been liked by users.
165179

Documentation/Deployment-guide.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ Note - You must create ALL of the columns below even if you are not deploying th
4343
| ChannelIds | Multiple lines of text |
4444
| GroupChatIds | Multiple lines of text |
4545
| CommunityIds | Multiple lines of text |
46-
| MessageId | Single line of text |
4746
| Scheduled | Yes/No | Default value = No |
4847
| ScheduledDateTime | Date and time | Include time |
4948
| Status | Choice | Not Sent, Send, Sent, Failed | Default value = Not Sent
@@ -61,31 +60,53 @@ Note - You must create ALL of the columns below even if you are not deploying th
6160
| LikedPrompts | Lookup | Source list = 'Prompts', Select a column = 'ID' |
6261
| TutorialComplete | Yes/No | Default value = No |
6362

64-
6. Create a list name 'Configuration'.
63+
6. Create a list named 'Reporting'.
6564
7. Create the following columns:
6665

6766
| Column Name | Type |
6867
| -------- | ------- |
69-
| Value | Single line of text
68+
| PromptsSent | Number
69+
| AppLaunches | Number
70+
| PromptsCopied | Number
71+
| PromptsLiked | Number
7072

71-
8. Create a list item in the above list with the following details:
73+
8. Create a list named 'Configuration'.
74+
9. Create the following columns:
75+
76+
| Column Name | Type |
77+
| -------- | ------- |
78+
| Value | Single line of text
79+
80+
10. Create a list item in the above list with the following details:
7281

7382
Title: AppId
7483

7584
Value: Leave empty
7685

77-
9. Create a second list item in the above list with the following details:
86+
11. Create a second list item in the above list with the following details:
7887

7988
Title: ServiceAccountUPN
8089

8190
Value: UPN (Email) of your service account
8291

83-
9. Create a third list item in the above list with the following details:
92+
12. Create a third list item in the above list with the following details:
8493

8594
Title: PromptBuddyInstalled
8695

8796
Value: 'true' (if you wish to integrate with Prompt Buddy) or 'false'.
8897

98+
13. Create a fourth list item in the above list with the following details:
99+
100+
Title: ShowShareEngage
101+
102+
Value: 'true' (if you wish to allow sharing to Viva Engage) or 'false'.
103+
104+
14. Create a fifth list item in the above list with the following details:
105+
106+
Title: ShowShareUsers
107+
108+
Value: 'true' (if you wish to allow sharing to users) or 'false'.
109+
89110
## Step 2: Deploy Power Apps solution
90111

91112
1. Navigate to **Power Apps** as the service account.
@@ -129,6 +150,7 @@ Before rolling out Prompt Pulse, it is neccessary to configure the permisions on
129150
1. Amend the permissions on the **Prompts** list (Advanced Settings) to **Create items and edit items that were created by the user**.
130151
2. Amend the permissions on the **Users** list (Advanced Settings) to **Read items that were created by the user** and **Create items and edit items that were created by the user**.
131152
3. Break permission inheritance on the **Prompts** and **Users** lists and add only users/groups that will use Prompt Pulse.
153+
4. Break permission inheritance on the **Configuration** and **Reporting** lists and ensure that only admins have write access to these lists, users should have read access.
132154
4. Ensure that admins who may need to read, edit and delete all list items have **Full Control**/**Owner** permissions on the SharePoint site.
133155

134156
## Step 5: Deploy Prompt Buddy Integration
12.5 KB
Loading

Documentation/Overview.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Prompt Pulse consists of the following components:
44

55
- Power App
66
- 6 x Power Automate flows.
7-
- 3 x SharePoint lists for data storage
7+
- 4 x SharePoint lists for data storage
88

99
Separate Dataverse for Teams solution for integration with Prompt Buddy containing 1 Power Automate flow.
1010

@@ -47,6 +47,8 @@ From the main screen, the process for sharing a prompt is as follows:
4747

4848
<img src="https://github.com/pnp/prompt-pulse/blob/main/Documentation/Images/prompt-pulse-share-screenshot.png?raw=true" alt="Prompt Pulse Share Screenshot"><br/>
4949

50+
**Note - Viva Engage and Users radio buttons are only enabled if the 'ShowShareEngage' and 'ShowShareUsers' list items in the Configuration list are set to true.**
51+
5052
### Viewing/using prompts
5153

5254
From the main screen, users can view the latest 20 prompts. To use a prompt simply click the prompt **'tile'** and the prompt text will be copied to your clipboard.
@@ -119,6 +121,21 @@ To import prompts from Prompt Buddy, follow the steps below:
119121

120122
<img src="https://github.com/pnp/prompt-pulse/blob/main/Documentation/Images/prompt-pulse-import-buddy-screenshot.png?raw=true" alt="Prompt Pulse Import Prompt Buddy Prompts Screenshot"><br/>
121123

124+
#### Reporting
125+
126+
Basic reporting to showcase the adoption of Prompt Pulse is now available in the form of a SharePoint list. A single list item will be created in this list by the app and flows if it does not exist.
127+
128+
The 'Reporting' list shows the following information:
129+
130+
- PromptsSent - The number of prompts sent in Prompt Pulse either directly or via scheduling.
131+
- AppLaunches - The number of times the app has been launched/opened.
132+
- PromptsCopied - The number of times prompts have been copied (clicking the prompt card) in the app.
133+
- PromptsLiked - The total of prompts that have been liked by users.
134+
135+
You may wish to create your own reports using tools such as Excel or PowerBI to visualize this data.
136+
137+
<img src="https://github.com/pnp/prompt-pulse/blob/main/Documentation/Images/reporting-list-screenshot?raw=true" alt="Prompt Pulse Reporting List Screenshot"><br/>
138+
122139
### Tips
123140

124141
- Use a dedicated service account/M365 user when deploying Prompt Pulse (adaptive cards will be sent from this account).
@@ -143,7 +160,7 @@ There are 6 flows that are part of the Prompt Pulse solution, these are listed b
143160

144161
As mentioned earlier there is an additional flow for the Prompt Buddy integration.
145162

146-
- Send Prompt: This flow executes when a list item is created or modified in the 'Prompts' list and sends the prompt to the specified location using adaptive cards or in the case of Viva Engage, a message.
163+
- Send Prompt: This flow executes when a list item is created or modified in the 'Prompts' list and sends the prompt to the specified location using adaptive cards or in the case of Viva Engage, a message.
147164
- Send Scheduled Prompt: This flow runs on a recurrent schedule (5 minutes by default) and is responsible for checking for scheduled prompts in the list and sending these.
148165
- Like Prompt: This flow runs when a user clicks the **Like Prompt** button in the adaptive cards and adds the prompt to the users' liked prompts.
149166
- Get Group Chats: This flow is used in the Power App and retrieves a list of group chats that the current user is a member of where the Prompt Pulse account is a member of the chat.
@@ -160,6 +177,7 @@ There are 3 SharePoint lists used in the solution:
160177
- Prompts: Stores the prompts shared/scheduled in the app.
161178
- Users: Stores the users who have opened/used Prompt Pulse and their liked prompts.
162179
- Configuration: Stores configuration settings for Prompt Pulse.
180+
- Reporting: Stores basic reporting data for Prompt Pulse.
163181

164182
These lists can be easily extended or changed should you wish to modify/customize Prompt Pulse. You can of course edit and delete prompts directly from the list if required. Avoid modifying the values of the GroupId, GroupChatId, TeamId, ChannelId and MessageId columns as these are used heavily in the Power Automate flows.
165183

2.91 MB
Binary file not shown.

0 commit comments

Comments
 (0)