N/email module in Suitescript

In this module in suitescript, the syntax is:

In the syntax, for the recipients, we can give either the id of the recipient or the email address of the recipient. The author should be the id of the sender. When we give the email in recipient, the email will be sent to them. But when we give the id of the recipient, the email message will be attached in the communication subtab of the record of the corresponding subtab.

An error when using the N/email module.

An error was thrown when using the N/email module which was ’email.send is not a function’. The error thrown code is given below:

The N/email module was loaded in the code. The problem with the code was in the line:

When the variable name coincided with N/email method ( email.send(options)), the error was thrown.

Leave a comment

Your email address will not be published. Required fields are marked *