Hi Guys,
I have email template with the feilds in recipient table like <%= recipient.firstname%>, <%=targetData.anneversary%>
Currently I am passing email field to SubmitNotification API call like below :
Note: When i pass @ID instead of @email my recipient.firstname piped correctly. But the question is how can i get a personalized feild that is "anneversary" which i calculated in additional data of query activity into email template through API. Do we have any tags for this like <targetData> etc..,,
var emailCondition = "@email = 'XXX-email from tempTable of query activity-XXX'";
var deliveryId = nms.delivery.SubmitDelivery("Email_Template_Name",
<delivery>
<targets >
<deliveryTarget >
<targetPart exclusion='false' ignoreDeleteStatus='false'>
<where>
<condition expr={emailCondition} />
</where>
</targetPart>
</deliveryTarget>
</targets>
</delivery>);
now how to i pass the variables firstname, anneversary to this function call so that my delivery will be populated with firstname and anneversary values.?