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 Notification on Change of Fields.

edited Nov 19, 2020 7:36AM in Fusion Service 4 comments

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'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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