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.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
Groovy script to notify agent when request is updated
Summary:
Content (please ensure you mask any confidential information):
My groovy script is supposed to send a bell/email notification to agents when their request is updated but its not pushing anything through. Can you let me know if there is an issue with my script? I also set the trigger to 'AfterTrasactionPosted;
if (isAttributeChanged('LastUpdatedBy') && (LastUpdatedBy == PrimaryContactPartyId)) {
try {
def map = new HashMap();
// Create notification message
def messageText = 'The Primary Contact has updated Service Request (SR' + SrNumber + ' - ' + Title + '). Please review the changes.';
// Identify the recipient (Agent assigned to the request)
def recipientPartyId = AssigneeResourceId;
// Specify notification channels
Tagged:
0