SharePoint Alerts notifications customized

Copper Contributor

Hello, A customer wants to change the message of the alert notification system from SharePoint Online by adding in the body and in the subject information that is more relevant to his content management platform.
SharePoint Online provides a very simple notification that says that something changed in the page you flagged. They basically want to add detail to that message and change the layout.

The customizations the customer needs are:
• Custom layout
• Custom body message with more dynamic information than the one that appears right now
• Custom subject

Is anyone aware if it possible OoTB or with a third party solution? Thx

 
4 Replies

Hi Victor,

 

There is no way to change OOTB alert templates in SharePoint Online.

But the task itself is achievable with customizations. It can be a variety of ways to get the feature:

 

- Workflow (let's say a notification on new item created with SPD, or a banch of items appeared in search with site workflow)

- PowerShell script to get context and send alerts running on schedule (windows schedule or Azure Web Job for instance)

- C# CSOM or Node.js REST or any business logic (also running on schedule)

 

There should be a UI customization too to allow users subscribing or opposite too.

So it's not something that can be taken from out of the shelf.

 

P.S.

@Sergei Snitko can share the technique which he used recently, if it's possible to share due to some reasons.

You can do that by creating a workflow with SharePoint Designer 2013.

Hello, Victor!

 

There is no OOTB solution for notifications with customization at all, not only in SPO. In SharePoint On-Prem we can change the templates, but it is very hard and it is not supported by the vendor. In this case, almost every SharePoint developer has own solution for this situation. Someone uses workflow of custom solution for his case. We developed such kind of solution that can cover almost all standard alerts functions and it works like this:

  1. The solution has two interfaces. The first one is the console application, that you have to execute by schedule. You can store in on your own windows server and use windows tasks for it, or use something like Azure. The second one is the WebAPI service. And you also can store in on your own windows server and use windows tasks with powershell for it, or use something like Azure
  2. The solution has a settings layer. After you install the solution (we use SPMeta2 for artefacts provision), there are some settings lists, like the list of SharePoint lists or libraries on which the custom alerts work, the list of templates with RichHTML control for each SharePoint list in previous list and the list of subscribers.
  3. Some JavaScript code for applying notification for administrators in lists and users
  4. So, the solution executes by schedule, finds the items which were updated for the last time in lists in settings, checks the permissions of the user in subscribers list if the item is published and sends the email for this user by the template from the templates list.

 

This solution can be extended for the needs of the client.

You can use MS Flow to customize your notifications with customization to the text and the content delivered in the message.