Hello Team,
Greetings for the day!
Could some one suggest the way or .net C# code snippet to send an email directly without creating the analysis using AFSDK. I know I could do it using SMTP server detail provided in my C# code.
However, I would like to use delivery channel and contacts defined in PI AF database.
Note: We are using PI Notification 2016
Please suggest. Thanks in Advance.
Thanks & Regards,
Paresh
Hi Paresh,
Do you simply want to retrieve the delivery end points from AF and create your own Notification service? Notifications (2016 R2 or later) are only triggered off of Event Frames.
You can find information on how to programmatically retrieve AF Contacts and Delivery End Points here: https://techsupport.osisoft.com/Documentation/PI-AF-SDK/Html/T_OSIsoft_AF_Notification_AFNotificationContactTemplate.htm
Out of curiosity, why don't you want to use the Analysis Service and Event Frames as your triggering mechanism?
Thanks,
Seb