Email script

Prachi Tikhe
Tera Contributor

I need the output shown in SS1 picture the highlighted part UPDATE/RESOLVED in the beginning of the email subject and also in the header.

When user puts UPDATE/RESOLVED in 'Actions being taken' field as shown in SS2 picture, the email subject should being with UPDATE/RESOLVED.

I have attached the script.

1 REPLY 1

Murthy Ch
Giga Sage

Hello @Prachi Tikhe 

You can get the actions being taken value using the below code:

var actionTaken = current.getValue('action_being_taken'); //replace with actual field name
if (actionTaken != " ") {
    email.setSubject("Your dynamic text");
}

Hope it helps:)

 

 

Thanks,
Murthy