I would like to export Notifications which are in Error/Disabled state, is it possible?
What we need is GUID and target path.
You can use the FindNotifications() function at the OSIsoft.AF.Notification.AFNotification class to get all the notifications you want to test. Then you can loop through the result and check its status. Something like
var notifications = OSIsoft.AF.Notification.AFNotification.FindNotifications();
foreach (var notification in notifications)
if (notification.Status == OSIsoft.AF.Analysis.AFStatus.Error) ...
if (notification.Status == OSIsoft.AF.Analysis.AFStatus.Disabled) ...
Is that what you are looking for?
Thanks for your reply.
I will test this and will revert you with results.
Retrieving data ...