Your UX is waiting ...interact, engage, explore in Las Vegas at CloudWorld 2023

Learn more
Groovy and Notification Examples — Cloud Customer Connect
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

Groovy and Notification Examples

Received Response
221
Views
29
Comments
edited Jul 27, 2023 10:28PM in Help Desk 29 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!