Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
SuiteScript SendEmail Use of RelatedRecords
I'm having a problem being able to attach the email to a custom Project record.
I've successfully been able to use the API to send email as long as I only use either entityId as a related record and attach to an employee record or I remove that optional parameter totally.
I've tried using transactionId and I've tried customRecord, both together and alone. In all cases I get an UNEXPECTED_ERROR which has no details at all about what might be wrong.
Does anyone know what I need to do to have this email attached to my Project record?
/**
*@NApiVersion 2.1
0