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

How to Configure Case Object Notification

This document guides a customer to configure Case object to send a notification to a resource when he/she is added to a Case.

  • Login to App Composer
  • Create and enter in a Sandbox
  • Expand Standard Objects → Case → Case Resource

  • Go to "Triggers" tab
  • Click on "Action" drop-down and select "Add"
  • In Create Object Trigger page, select Trigger as either "Before Insert in Database" or "After Changes posted to Database". In this example, I have selected "Before Insert in Database". Enter any name for "Trigger Name"

  • In Edit Script, copy and paste below groovy script
try {
     
    println("Preparing data to send notification.");
     
    def map = new HashMap();
 
    // Specify default MessageText
    def messageText = "You are included in the team for Case: " + CaseNumber;
 
    // Specifying the recipient
    def recipientPartyId = PartyId;
 
    // Resolving Parent child object relation
    def objectCode='CaseVO';
    Long objectId = CaseId;
 
    // Specify one or more channels

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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