developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 8 Forum

Notes/Domino 8 Forum



Feedback Type Question
Subject Sendto Multivalue Field
Product Area Activities
Technical Area Application development
Platform ALL
Release All
Reproducible -Reproducibility-
Hii

I am trying to use lotusscript to get to send a mail to a multivalue field. When I use doc.sendto it just sends to the first person in the field.

I read online the only way to do this is using an array. I have tried using this an

teammail = Ubound (doc.teammembers)
Redim dinArray(teammail)
For i=0 To teammail
dinArray(i)=doc.teammembers(i)
Next

cdoc.sendto=teammail(0)
When I run it I get an error saying Variant does not contain a container. Im not sure where it is going wrong.

Thanks

Feedback number WEBB9ZKKCV created by Rory Fanning on 08/18/2019

Go back