Rick Goodrow
07/20/2024, 8:51 PMN/email
to send to a NetSuite group directly? The group does not have it's own email, just a collection of employees. I tried putting the internal id of the group under Nemail.send({recipieints: <group internalid>})
, however NetSuite just throws an UNEXPECTED_ERROR
. I know I can separately get the group, get the members, loop over members and add as individual recipients to Nemail
, just seems like re-inventing the wheel when the group already exists. Making sure I'm not missing something about being able to send directly to a group.Eric B
07/20/2024, 10:13 PMRick Goodrow
07/20/2024, 11:05 PMericbirdsall
07/22/2024, 3:18 PMemail.send
only supports 10 email addresses at a timeRick Goodrow
07/22/2024, 3:32 PMsendToGroup(emailParams)
to handle it. Take a group ID, run a saved search, parse results, chunk sending if necessary