Email sent from Groovy trigger contains content not defined in the configured Email Template
Summary:
A Groovy Before Update trigger is being used to send an email notification through an Email Template. However, the email received by the user contains not only the content defined in the template but also additional content that is automatically appended by the notification framework.
if (isAttributeChanged('customfield') && customfield == "Y") {
try {
def map = new HashMap()
def recipientPartyId = AssigneeResourceId
map.put("Channels", ["ORA_SVC_EMAIL"])
map.put("RecipientPartyId", recipientPartyId)
map.put("EmailTemplateName", "test template")
if (recipientPartyId) {
adf.util.sendNotification(adf, map)
} else {
println("No Assignee associated with this SR")
}
} catch (Exception e) {
println("Failure to trigger notification from Groovy Script: " + e.getMessage())