Hi, I wanted to add the following parameter description for a weather element in my email which will be automatically generated using correlation rule.
After searching and using all available placeholder values. None of them matches the parameter description in the alarm console.
[info] [parameter] [paramidx] [paramname] [value] [value:short]Therefore, may I know how to add the parameter description to the email? Which placeholder to use?
Hi Zhing,
Can you try [parametername]?
We use this placeholder to pass the parameter description to an automation script:
How to get parameter description in automation script
Hope it helps.
Update:
Information available in parameter description can be retrieved using [paramname]
Hi Zhing,
Checking in more detail I can see that the the information displayed under ‘Parameter Description’ can be retrieved using [paramname]. Please see updated answer. Could you let me know what information from the parameter description you are not able to see in the notification?
Hi Miguel, sorry my misinterpretation. The information I am expected to see in my email are parameter values from my table. For example, in the element I have a table with a column called parameter description and it has an ID of 1001. May I know how I can add the table information with a specify ID in my email?
Hi Zhing,
As far as I could see it is not possible to retrieve data from a table using the notification placeholders. Most of the information available through the placeholders refer to the alarm itself that triggered the correlation rule.
As a workaround, you could send an email notification via automation script (through a CSharp code):
Using C# code in Automation scripts:
https://docs.dataminer.services/user-guide/Advanced_Modules/Automation_module/Using_CSharp_code_in_Automation_scripts.html
How to send an email using Csharp block:
https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Engine.SendEmail.html#Skyline_DataMiner_Automation_Engine_SendEmail_System_String_System_String_System_String_
Hope it helps.
Hi Miguel,
Unfortunately, [parametername] does not work. In the email it shows [parametername] instead of parameter description.