To show email content based on options selected in list field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 10:25 PM
Hi Community,
I have created a custom field on change form which is of type LIST. Whatever multiple options change team has selected in this field, it should trigger an email for those options only along with some dynamic content.
For eg.: If user selects justification, backout plan, implementation plan etc in the list field, it should show email content for justification, backout plan, implementation plan only along with some dynamic content for these selections. Please see content for justification below:
- Justification
Justification details are insufficient, Enter benefits of implementing this change and impact if this change is not implemented.
How can i modify email script for the multiple options selected in list field and it should show the email content related to the options selected.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 10:54 PM
Hi,
Please try if the below option works.
In email script read the value of the list field (I believe it will be a comma separated sys_ids).
And then push the value in to a array.
Loop through the array and for each value (if it same as field name), do a switch and include the required content using template.print.
Regards,
Karthik Nagaramu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2023 11:45 PM
Can you please share me a sample code for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 02:15 AM