Email will go to customer if I have given internal id as recipient?

I have created scheduled script to send email to customer. If I set customer’s internal id, will email go to that customer?  In below code sample i_customer_name is customer’s internal id. Please help!

email.send({
                                     author: s_sender,
                                     recipients:parseInt(i_customer_name),
                                     subject: s_subject,
                                     cc : arr_email_cc,
                                     body: s_meesage_body,
                                     attachments: arr_Attachments
                                     });
Beginner Asked on March 15, 2023 in SuiteScript.
Add Comment
1 Answer(s)

Off top of my head and from my understanding, if referencing the internal ID of the customers then it shouldn’t be an issue as that is the Unique Identifier. Have you tried & tested in a sandbox/uat environment?

 

If not an alternative could be a workflow with a custom saved search depending on your case.

Beginner Answered on March 24, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor