Hi All,I need to send an calendar invitation .This as to be done Programatically. Can Any one tell me is there any other idea how to send calendar invitation programatically?
I have done like this:
I have a form A. I will be entering some values in this Form. When i click save the details from the form A will be moved to the _Calendar form and the invitation mail will be sent to the reciepients.
I have written the code in Query Save of the form A.
the code goes like this.
Call doc1.ReplaceItemValue(“Form”,“Calendar”)
Call doc1.ReplaceItemValue(“AppointmentType”,“3”)
Call doc1.ReplaceItemValue(“Subject”,uidoc.FieldGetText(“Description”))
Call doc1.ReplaceItemValue(“StartDate”,Cdat(uidoc.FieldGetText(“DueDate”)))
Call doc1.ReplaceItemValue(“StartTime”,Cdat(“12:00:00 PM”))
Call doc1.ComputeWithForm (True,False)
Call doc1.Save(True,True)
Call doc1.Send(False,assigned name…)
Is i am Correct?
I am getting the mail.
but when i try to open the invittaion it prompts me the error.
“Error trying to Open Document: Note Item not found”
and if i give ok, prompts me another error saying some field has incorrect data type. But there is no field like that.
Even I gave that field and gave some date time value.But its not working.
I have copied the Calendar Invitation form from the Notes mail db.
Do i need to do any more thing?
Pls Help Me out to Slove this Problem.
Thanking you in Advance
Cheers,
Sam Mathew