Programmatically Create Delivery Format Notification

Discussion created by ericL on Oct 23, 2012
Latest reply on Oct 29, 2012 by Ahmad Fattahi

Hi everyone,


I have a requirement to create a custom email that will have some information specific to each individual notification that will come from the database. Based on this I think I need to create a Delivery Format for each notification.




See this screenshot to understand. I used PI system explore to create a custom (email) Delivery Format that will be applied to that notification only (each notification will have its own delivery format email):






... then I will apply that template to the subscription:






My main issue which I would like help with is on how to create the Email Delivery Format for a notification (screenshot 1).


In C# I kind of guess that I would use the method Notification.DeliveryFormats.AddFormat(), is this right? Also I would like to get if possible an example on how to do this:


var notification = new AFNotification(afDatabase, "NotificationName");
var configNotific = new ANConfigurationNotification(notification);