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
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

Groovy and Notification Examples

edited Jul 27, 2023 10:28PM in Help Desk 32 comments

Summary:

Can anyone share their trigger and groovy script for common notifications for HR Help Desk?

I have been able to create a few around changed attributes, like when a queue is changed, or when an SR gets assigned or reassigned, but I am looking for triggers around messages, and to the team of a queue when an SR is created but has not been assigned. I did you the examples from Oracle, but expanded on the messages

SR Assigned

Trigger : Before Update

 if (isAttributeChanged('AssigneeResourceId')) {

   try {

       def recipientPartyId = AssigneeResourceId

       def messageText = '"SR' + SrNumber + ' - ' + Title+'" has been assigned to you in queue "' + SvcQueue?.QueueName+'"'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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