I need to write a script to include additional ema...
# ask-stanley-ai
b
I need to write a script to include additional email addresses listed on a transaction body field on the Email CC when I choose to send a message to the customer through the communication tab in NetSuite. This field exists on the customer record.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you can indeed include additional email addresses listed on a transaction body field on the Email CC when you choose to send a message to the customer through the communication tab in NetSuite. However, this would require a script to dynamically source the fields. The
email.send()
function in SuiteScript allows you to attach emails to the Communication tab of a Transaction record. You can use the
relatedRecords
key from
email.send()
to achieve this. When it comes to adding multiple email addresses, you can enter them with a comma between them, with no spaces. If the email addresses are sourced from a field on the record and are not static, you can create a custom field to concatenate the required emails, and then insert that into the CC field in the Workflow action. However, it's important to note that the CC parameter of an
nlapiSendEmail
call or a Send Email workflow action accepts only one of the following valid values: - a single email address - multiple e-mail addresses separated only by single commas - null The 'From Field' option only accepts fields that are of type Entity (Employee). ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.864031494
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.859922469
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858941853
Please provide your feedback on this answer.