Finding notification template names

Discussion created by mjarvis Employee on Dec 14, 2011
Latest reply on Dec 14, 2011 by jstarnes

I'm looking for a fast way to find notifcation template names. The FindElementTemplates returns a large object of AFElementTemplates, and takes a while to complete. I also have to get the notification template name afterwards in the InstanceType.Name field.


Is there a way to search for only notification templates? Or a way to return only the notifcation template names? Thinking I may need to use OLEDB Ent to retrieve only the names, but this is designed to be a client app, and I don't necessarly want to install OLEDB Ent on all the clients. Code snippet below, any help would be welcome! =) 









Dim myelementtemplates As New AFNamedCollectionList(Of OSIsoft.AF.Asset.AFElementTemplate)

myelementtemplates =



AFElementTemplate.FindElementTemplates(_AFDatabase, "", AFSearchField.Template, AFSortField.Name, AFSortOrder.Ascending, 50)








For Each AFElementTemplate In