My Oracle Support Banner

FA:SCM:PLM - Enhancement - Send Notification In Groovy Script Using App Composer (Actions & Link) (Doc ID 2621601.1)

Last updated on JUNE 26, 2020

Applies to:

Oracle Quality Management Cloud Service - Version 11.13.19.10.0 and later
Information in this document applies to any platform.

Symptoms

Send Notification In Groovy Script Using App Composer (Actions & Link)

User created Action under Quality Issue.

Below is example code to try sendNotification().

try {
def recipientPartyId = adf.util.getUserPartyId()
def messageText = 'A test notification (default message).'

if (recipientPartyId) {
//Call to send notification
adf.util.sendNotification(adf, messageText, recipientPartyId )

//Log a confirmation that the notification has been sent. Logs can be viewed in 'Runtime Messages'.
println("Notification sent to " + recipientPartyId + " because the SR was assigned to them.")
} else {
println("No Assignee associated with this SR")
}
} catch (e) {
//Log the failure in groovy logging. Logs can be viewed in 'Runtime Messages'.
println("Failure to trigger notification from Groovy Script " + e.getMessage());
}

After trigger Action, I got below error message.
JBO-25077: Name newValue not found in the given object: ViewRow [oracle.jbo.Key[300000007112356 ]].

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.