I have an agent that will create a calendar entry in the form initiator mailbox. I use the server id to sign the agent because only the server and initiator have access to mailbox.
Set doc = New NotesDocument( dbMemo )
doc.AppointmentType = “2”
doc.Form = “Appointment”
…
…
Call doc.Save( True, False )
success = doc.ComputeWithForm( True, True )
If ( success ) Then
Call doc.Save( True, True )
End If
It return an error when doing the ComputeWithForm. (“Notes error: @Function is not valid in this context”)
It will still have created a draft entry but that entry will have error when opening.(“Error trying to open document: Note item not found”)
If I give a dev id access to the mailbox and sign the agent with the dev id, it runs fine. the server already have manager access to the mailbox. The only different I find in the ACL is the server id is type server and initiator is type person.
The mailbox is from default Lotus R6.5 template.
Why when using the server id the error will occurs? How can I resolve this.
Appreciate any help. Thanks