Creating calendar appointment from lotusscript with invitees

I created a calendar entry using lotusscript but I cannot figure out how to programmatically add invitees. Can anyone assist? What are the fields that need to be changed.

I tried:

maildoc.tmpRequiredAttendees = EventInvitees$

maildoc.EnterSendTo = Cstr(attItem(0))

maildoc.SendTo = Cstr(attItem(0))

maildoc.INetSendTo = Cstr(attItem(0))

maildoc.RequiredAttendees = EventInvitees$

maildoc.CopyTo = Cstr(attItem(0))

Nothing shows up in the invitee fields when I open the document/appointment. I still need to press the “Add Invitee” button and then see empty fields displayed. All the other fields are properly populated.