Problem in SendTo field

Problem in SendTo field

In my application I am populating SendTo field value in lotus script, it’s populating correctly, but the problem is if the recipient’s notes id contains one or more organization units(OU) that recipient id is not populating correctly in SendTo field.

My script code like below:


Set docMemo = db.CreateDocument

docMemo.SendTo = recipTo

docMemo.SendTo = "Recipient_1/USA, Recipient_2/CT/USA, Recipient_3/USA”

docMemo.CopyTo = recipCC

Result: (appearing in SendTo field):


"Recipient_1/CT/USA, Recipient_3/USA”

Recipient_2 is missing and the OU value of Recipient_2 is concatenating with Recipient_1”

What could be the problem? Please let me know anyone knows.

Subject: Problem in SendTo field

u can try to put all ur values to an array

dim vSendTo(0 to 2) as string

vSendTo(0)=“Recipient_1/USA”

vSendTo(1)=“Recipient_2/CT/USA”

vSendTo(2)=“Recipient_3/USA”

docMemo.SendTo=vSendTo

Subject: Problem in SendTo field

It is always good practice to assign arrays to multivalue fields rather than a comma/semi colon delimited string.