Send Email to Multiple Recipients from a Multi-select field via Workflow
Published on
November 30, 2023 at 7:40:02 AM PST November 30, 2023 at 7:40:02 AM PSTth, November 30, 2023 at 7:40:02 AM PST
Scenario
User wants to send an email to multiple recipients. The recipients are sourced from a multi-select field.
Solution
If a user retrieves the value from a multi-select field, it will be in an array.Send Email actionon the other handis similar tonlapiSendEmailAPI which states that a valid recipient it will accept should be any of the following:
- A single emailaddress
- Multiple emailaddresses separated by comma
- Single Internal Id of anEntity (where the Entity record has a valid email address)
A value from a multi-select field will not be valid for theSend Email action. The workaround is to use aWorkflow Action Scriptinstead of the standardSend Email action. The workflow action script will process the value from the multi-select field for it to be valid for thenlapiSendEmailAPI.
SuiteScript 1.0: