Email Notification on Change of Fields.
Summary
We would like to get email notification on the filed changes in the SR..Content
Hi ALl,
Can you please confirm if this is the correct code to sent notification when a status field is changed.
if (( isAttributeChanged(‘StatusCd’)) || ( isAttributeChanged(‘SeverityCd’)) || ( isAttributeChanged(‘AssigneeResourceId’)))
{
try {
def recipientPartyId = AssigneeResourceId
def messageText = ‘Status/Severity/Assignee of this SR was updated.’
if (recipientPartyId) {
adf.util.sendNotification(adf, messageText, recipientPartyId)
}
} catch (e) {
throw new oracle.jbo.ValidationException(‘Failure to trigger Notification from Groovy Script: ’ + e.getMessage())
}
}
When I parse the script, I get this error..
Error(5,45) : expecting '}', found 'of' |
0