Irina Mitrova
02/21/2025, 10:14 AMCeligo AI
02/21/2025, 10:14 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that the issue of the email status not being marked as 'sent' in the Sent Email List when using
email.send
in a Suitelet, even though it appears in the communication subtab of the invoice, could be due to several reasons.
1. Email Bouncing: If the recipient's email address is on the 'Bounced Email Address' list, the email might not be delivered, and hence, not marked as 'sent'. It might take some time for the system to report it as a bounce. You can check the 'Bounced Email Address' list in NetSuite to see if the recipient's email is there.
2. Identical Emails: If you are sending identical emails repeatedly, the system might not mark them as 'sent'. Try changing the subject or the body of the email to make it unique each time.
3. Workflow Triggering: If a workflow is being triggered by the Suitelet, and the workflow is also sending an email, it might interfere with the email status. Check the settings used in the Send Email action of the workflow. You might need to set the execution context of the workflow action to 'User Interface' so that it won't run when the Suitelet executes.
4. Suitelet Execution: If the Suitelet is not executing properly, it might not send the email. Check the Suitelet code and ensure it is executing as expected.
Here is the sample code provided in the conversation:
javascript
let pdfFile = renderer.renderAsPdf();
log.debug(“Generated PDF File”, pdfFile);
email.send({
author: 14119,
recipients: recipientsArr,
subject: ‘Blanket Purchase Order’,
body: ‘Please find the attached PDF of your blanket purchase order.’,
attachments: [pdfFile],
relatedRecords: {
transactionId: Number(orderId),
},
});
******
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/21/2025, 10:15 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840064108
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83412385
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833653271
Celigo AI
02/21/2025, 10:15 AMmesper
02/21/2025, 11:32 AMIrina Mitrova
02/21/2025, 11:34 AMmesper
02/21/2025, 11:36 AMIrina Mitrova
02/21/2025, 11:39 AMmesper
02/21/2025, 11:41 AMIrina Mitrova
02/21/2025, 11:46 AMmesper
02/21/2025, 11:47 AM