Get Started with Redwood for Oracle Cloud HCM Begin Now
What is the groovy script for notification trigger to resource team members
Summary:
Requirement: If agent assigns the SR to himself other agents in the resource team should receive the notification.
I tried with the given code but the notification script is going only to agent who assigns the SR to himself. But as per requirement it should go to the other resource team member also.
Code Snippet (add any code snippets that support your topic, if applicable):
try
{
def recipientPartyId = AssigneeResourceId
def messageText = "A SR #" + SrNumber + " has been assigned to" + AssigneePersonName + " in" + QueueName + "."
/* Case I: SR Assigned */
if (isAttributeChanged("AssigneeResourceId") && AssigneeResourceId != null)
{
def map = new HashMap()
map.put("Channels",["ORA_SVC_BELL", "ORA_SVC_EMAIL"])
Tagged:
0