Splitting subject and message content under message groovy script — 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

Splitting subject and message content under message groovy script

Hi Team,

I created below groovy script to send the email notifications for message. However, I am not able to split the subject and message content. I created map.put for subject and message text separately. However, the message content is displayed as subject.

Expected Subject: Updates in Helpdesk Request

Display: Dear Employee

def subject = "Updates in Helpdesk Request " + HRHelpDeskRequest?.SrNumber;
def messageContent = "Dear Employee,";
def messageContent1 = "\nYour Helpdesk Request-" + HRHelpDeskRequest?.SrNumber + " - " + HRHelpDeskRequest?.Title +" has been updated.";

map.put("Subject", subject);
map.put("MessageText", messageContent + "\n" + messageContent1);

Thanks.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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