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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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