Email script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2024 08:46 AM - edited ‎09-25-2024 08:49 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 02:31 AM
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
Murthy