Skip to Content
0
Aug 15, 2023 at 10:58 AM

DI API: UserCode and UserType when adding a Recipient for sending an email Message

19 Views Last edit Aug 15, 2023 at 10:59 AM 3 rev

In the RecipientCollection of a Message, I need to add Recipient for sending an email to an arbitrary email id, which is neither a Business Partner, nor an internal user.

What values should I set for UserCode and UserType of the Recipient?

The DI API Reference document mentions UserCode as Mandatory:

image.png

whereas for UserType, the following are the valid values:

image.png

My addon will take the email id from the user as an input, and just wants to send mail to that mail id.

Attachments

image.png (15.6 kB)
image.png (19.7 kB)