SharePoint Alerts notifications customized

%3CLINGO-SUB%20id%3D%22lingo-sub-36369%22%20slang%3D%22en-US%22%3ESharePoint%20Alerts%20notifications%20customized%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36369%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22yj-message-list-item--body-message%20yj-message%22%3EHello%2C%20A%20customer%20wants%20to%20change%20the%20message%20of%20the%20alert%20notification%20system%20from%20SharePoint%20Online%20by%20adding%20in%20the%20body%20and%20in%20the%20subject%20information%20that%20is%20more%20relevant%20to%20his%20content%20management%20platform.%3CBR%20%2F%3ESharePoint%20Online%20provides%20a%20very%20simple%20notification%20that%20says%20that%20something%20changed%20in%20the%20page%20you%20flagged.%20They%20basically%20want%20to%20add%20detail%20to%20that%20message%20and%20change%20the%20layout.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20customizations%20the%20customer%20needs%20are%3A%3CBR%20%2F%3E%E2%80%A2%20Custom%20layout%3CBR%20%2F%3E%E2%80%A2%20Custom%20body%20message%20with%20more%20dynamic%20information%20than%20the%20one%20that%20appears%20right%20now%3CBR%20%2F%3E%E2%80%A2%20Custom%20subject%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20anyone%20aware%20if%20it%20possible%20OoTB%20or%20with%20a%20third%20party%20solution%3F%20Thx%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22wrap-content%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-36369%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36540%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Alerts%20notifications%20customized%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36540%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20Victor!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20OOTB%20solution%20for%20notifications%20with%20customization%20at%20all%2C%20not%20only%20in%20SPO.%20In%20SharePoint%20On-Prem%20we%20can%20change%20the%20templates%2C%20but%20it%20is%20very%20hard%20and%20it%20is%20not%20supported%20by%20the%20vendor.%20In%20this%20case%2C%20almost%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eevery%26nbsp%3BSharePoint%20developer%20has%20own%20solution%20for%20this%20situation.%26nbsp%3BSomeone%20uses%20workflow%20of%20custom%20solution%20for%20his%20case.%20We%20developed%20such%20kind%20of%20solution%20that%20can%20cover%20almost%20all%20standard%20alerts%20functions%20and%20it%20works%20like%20this%3A%3C%2FP%3E%3COL%3E%3CLI%3EThe%20solution%20has%20two%20interfaces.%20The%20first%20one%20is%20the%20console%20application%2C%20that%20you%20have%20to%20execute%20by%20schedule.%20You%20can%20store%20in%20on%20your%20own%20windows%20server%20and%20use%20windows%20tasks%20for%20it%2C%20or%20use%20something%20like%20Azure.%20The%20second%20one%20is%20the%20WebAPI%20service.%20And%20you%20also%20can%20store%20in%20on%20your%20own%20windows%20server%20and%20use%20windows%20tasks%20with%20powershell%20for%20it%2C%20or%20use%20something%20like%20Azure%3C%2FLI%3E%3CLI%3EThe%20solution%20has%20a%20settings%20layer.%20After%20you%20install%20the%20solution%20(we%20use%20SPMeta2%20for%20artefacts%20provision)%2C%20there%20are%20some%20settings%20lists%2C%20like%20the%20list%20of%20SharePoint%20lists%20or%20libraries%20on%20which%20the%20custom%20alerts%20work%2C%20the%20list%20of%20templates%20with%20RichHTML%20control%20for%20each%20SharePoint%20list%20in%20previous%20list%20and%20the%20list%20of%20subscribers.%3C%2FLI%3E%3CLI%3ESome%20JavaScript%20code%20for%20applying%20notification%20for%20administrators%20in%20lists%20and%20users%3C%2FLI%3E%3CLI%3ESo%2C%20the%20solution%20executes%20by%20schedule%2C%20finds%20the%20items%20which%20were%20updated%20for%20the%20last%20time%20in%20lists%20in%20settings%2C%20checks%20the%20permissions%20of%20the%20user%20in%20subscribers%20list%20if%20the%20item%20is%20published%20and%20sends%20the%20email%20for%20this%20user%20by%20the%20template%20from%20the%20templates%20list.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20solution%20can%20be%20extended%20for%20the%20needs%20of%20the%20client.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36395%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Alerts%20notifications%20customized%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36395%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20do%20that%20by%20creating%20a%20workflow%20with%20SharePoint%20Designer%202013.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36376%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Alerts%20notifications%20customized%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36376%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Victor%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20way%20to%20change%20OOTB%20alert%20templates%20in%20SharePoint%20Online.%3C%2FP%3E%3CP%3EBut%20the%20task%20itself%20is%20achievable%20with%20customizations.%20It%20can%20be%20a%20variety%20of%20ways%20to%20get%20the%20feature%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Workflow%20(let's%20say%20a%20notification%20on%20new%20item%20created%20with%20SPD%2C%20or%20a%20banch%20of%20items%20appeared%20in%20search%20with%20site%20workflow)%3C%2FP%3E%3CP%3E-%20PowerShell%20script%20to%20get%20context%20and%20send%20alerts%20running%20on%20schedule%20(windows%20schedule%20or%20Azure%20Web%20Job%20for%20instance)%3C%2FP%3E%3CP%3E-%20C%23%20CSOM%20or%20Node.js%20REST%20or%20any%20business%20logic%20(also%20running%20on%20schedule)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20should%20be%20a%20UI%20customization%20too%20to%20allow%20users%20subscribing%20or%20opposite%20too.%3C%2FP%3E%3CP%3ESo%20it's%20not%20something%20that%20can%20be%20taken%20from%20out%20of%20the%20shelf.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EP.S.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F33453%22%20target%3D%22_blank%22%3E%40Sergei%20Snitko%3C%2FA%3E%26nbsp%3Bcan%20share%20the%20technique%20which%20he%20used%20recently%2C%20if%20it's%20possible%20to%20share%20due%20to%20some%20reasons.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-869245%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Alerts%20notifications%20customized%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-869245%22%20slang%3D%22en-US%22%3EYou%20can%20use%20MS%20Flow%20to%20customize%20your%20notifications%20with%20customization%20to%20the%20text%20and%20the%20content%20delivered%20in%20the%20message.%3C%2FLINGO-BODY%3E
Regular Visitor

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.