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 script help- Custom Notification in Case Management

Summary:

Hi, my client is using relationship types for contacts in access groups and would like to trigger a notification to a user when they are added as a contact and the contact case relationship type is Investigating Officer, I have tried the following scripts that aren't triggering the notification. Any guidance would be great, TIA

After changes posted to database:

try {    println("Trigger: After changes posted to database");    // Check if the relationship type is Investigating Officer    if (RelationshipCdMeaning == 'Investigating Officer') {        def map = new HashMap();        def messageText = "You have been added as an Investigating Officer for Case: " + CaseNumber;        map.put("MessageText", messageText);        map.put("RecipientPartyId", PartyId);        map.put("ObjectCode", "CaseVO");      

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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