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 MAY 06, 2022

Applies to:

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


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 ]].


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

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