-
Topic
-
Hi, i want to create an appointment in my own calendar which should be automatically accepted.
It’s no problem to create an appointment, but i can’t find any possibility to accept this appointment
Here is the code (i use Groupwise 7):
set oDraft = GroupWise.Account.MailBox.Messages.Add(“GW.MESSAGE.APPOINTMENT”, fgwDraft)
call oDraft.Recipients.Add(“anyone@blabla.com”, “”, fgwTo)oDraft.Subject=”Subject…”
oDraft.StartDate=sStartDate
oDraft.EndDate=sEndDate
oDraft.AlarmSet=true
oDraft.AlarmReminderMinutes=10‘Version 1:
call oDraft.Accept(“CRM inserted/changed appointment!”,210,NewMsg.messageid,true)
set NewMsg=oDraft.Send()‘Version 2:
set NewMsg=oDraft.Send()
call oDraft.Accept(“CRM inserted/changed appointment!”,210,NewMsg.messageid,true)‘Version 3:
set NewMsg=oDraft.Send()
Groupwise.ItemAccept(“inserted/changed appointment)
or
Groupwise.ItemAccept(“inserted/changed appointment”,210,”” & NewMsg.messageid & “”,0)‘Version 4
set NewMsg=oDraft.Send()
iSyntax = “ItemAccept(“”inserted/changed appointment””;210;””” & NewMsg.messageid & “””;0)”
msgbox groupwise.throwtoken(iSyntax, returnVal)…what every i try, the appointment is never accepted. Whats wrong?
The next problem is, that i can’t set the Alarm. I tried:
oDraft.AlarmSet=true
oDraft.AlarmReminderMinutes=10but nothing happens. Isn’t it possible to set the Alarm parameters before sending the appointment?
Thanks for your help
- You must be logged in to reply to this topic.