Programmatically Create Notification Email Delivery Format - Display Value of PI Tag in the Body of Email

Discussion created by ericL on Oct 30, 2012
Latest reply on Nov 5, 2012 by Gregor

Hi Everyone,


I`ve been able to successfully create a notification email format using attributes as placeholders in the email body.


Now I would like to know if there is a way to create a placeholder in the email body to display a value of certain pi tag


Below is what I`m doing to create a custom format to add AF attributes to the body of the email. I would like something similar to display the value of a PI Tag.


paragraph = new Paragraph();
var c1 = ANNotificationContentHelper.CreateAttribute(notification, My_AF_Attribute);
var inlineContent = new ANInlineContent(c1.Id, (int)AttributeProperties.Value);




any ideai on how to do the same as above but instead of adding an AF attribute I would add a pi tag to display its value?


I know that I could create an AF attribute with data reference pointing to a pi tag, I would be using this solution in case there`s no better way.