How do I customize or set the message for Closed Notification in PI Notifications?
In PI Notifications prior to 2016 R2 this was not possible. There was an existing enhancement request:
In PI Notifications 2016 R2 it is possible. You can see this in action in the following youtube video at 3:56:
OSIsoft: How to Customize Notifications Message Content & Format [2016 R2] - YouTube
Sent from my Samsung device
Perhaps I missed something. The video was helpful to show how to include the message "placeholder" in the email template for closed notifications, but I did not see how to modify the message that will be generated by that placeholder.
Is there a way to define the text that the "Message for Closed Notifications" placeholder will generate?
You didn't miss something. My previous answer wasn't completely accurate, I never answered how to customize the message my apologies!
You can only configure a static string message to replace the default "Notification is closed". To do so:
1. Navigate to the configuration database in AF
2. Find the PIANO element
3. Create a new attribute called "NotificationClosedMessage"
4. Make the value a string
5. Set the value of that attribute to the desired string
Be careful while doing this as you don't want to accidentally modify the wrong attribute.
If you wanted a dynamic solution, you could configure an AF formula that verifies if the EF is open or closed and outputs an integer that is linked to an Enumeration Set with a more meaningful message. If you have any questions on this, let me know and I'll explain more.
Copy all. Thank you for the thorough and speedy response!
My team has been trying to find an answer to this for a while. We have had no luck finding any documentation on this, and when working with tech support on the occasional notification support issue we might bring this up but haven't had any luck finding a solution that way either.
I very much appreciate both of your approaches with the one being a direct edit to the configuration dB and the other being a cool use of a configuration set. You really (in my opinion) covered the solution in a way that users of almost any skill level can implement in a fashion that is comfortable to them and the administrators of the system.
Thank you very much for the detailed and thorough explanation!
Thank you for the nice comments Scott!
Hi Sebastian. Could you tell how would you make this AF formula, to verifiy if the EF is open or closed?
Thank you in advance!
You can configure a formula that evaluates the same logic as your StartTrigger in your Event Frame. If the StartTrigger is configured with PE functions, you can use an analysis outputting to an attribute with an analysis data reference.
Thank you very much Sebastian, i will do it!
FYI, since Scott Mitchell and David Wright asked about documentation. Here is a KB article discussing global config settings for Notifications: https://customers.osisoft.com/s/knowledgearticle?knowledgeArticleUrl=KB01630
Retrieving data ...