Lorenzo
02/10/2025, 6:03 PMCeligo AI
02/10/2025, 6:03 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems that you can set the CC field of an invoice to be emailed from REST API when using /salesOrder/id/!transform by creating a custom field on the invoice with a comma-separated list of email addresses. Then, you can use a workflow that picks up this field and uses it in the "cc" field of the email. Here is a sample code snippet from the conversation that demonstrates how to create a custom field and set its value:
javascript
setBodyFieldValue(cmRecord, cmData) {
cmRecord.setValue({
fieldId: 'custbody_gw_contrac_cm_type',
value: cmData.typeId,
})
}
In this example, 'custbody_gw_contrac_cm_type' is the custom field and 'cmData.typeId' is the value being set. You would replace these with your custom field for the CC email addresses and the comma-separated list of email addresses, respectively.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/10/2025, 6:03 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812960804
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.80411011
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803997934
Celigo AI
02/10/2025, 6:03 PM