createReminder from Sandbox

I used the createReminder subroutine from the Sandbox.A reminder shows up in the Calendar view and the alarm goes off well. But it is impossible to open the document.

Error code: “Error trying to open document: Note item not found.”

The error originates in the CSEventNotes (Declarations).

Any idea what Note item, neccessary in Notes 8.0, could be missing?

Subject: Found it!

.AppointmentType = 4should be

.AppointmentType = “4”

And also this is very usefull:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/98f9ee988863dab7852573a70010e476?OpenDocument