You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Email sent from Groovy trigger contains content not defined in the configured Email Template

edited 11:12AM in Help Desk

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())

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!