I’m developing a usertool to set and activate the out-of-office of other users. My problem is that i can’t activate the agent proppery.
Try-out 1:
I use the NotesAministrationProcess.ConfigureMailAgent to set the agent. But if the call of this command is the server it self, the response is as follows:
“Admin Process: Received the following error performing a Set User Name and Enable Scheduled Agent request on Test Personsen/TMAS (File name: names.nsf; Name: CG/TMAS): A person document for either the request’s signer or the ‘Name(s) acted upon’ was not found in any local trusted directories for which this server is the Administration Server.”
If the call of this command is made by an user, adminp respond with:
“Admin Process: Received the following error performing a Set User Name and Enable Scheduled Agent request on Test Personsen/TMAS (File name: mail\TPerson.nsf; Name: Christian Gravgaard/TMAS): The signer of this request must be the mail file’s owner.”
Try-out 2:
I use the commands:
NotesAgent.IsEnabled = true
NotesAgent.Save
…called by the server. The I can get the out-of-office agent to be activated, but as result, the out-of-office agent it self is failing:
“AMgr: Agent (‘OutOfOffice|OutOfOffice’ in ‘mail\TPerson.nsf’) error message: Function requires a valid ADT argument”
The soultion is not to fix the error in the out-of-office agent. This must be a standard mail agent. The solution is to activate the out-of-office proppery, without anyting failing.
Anyone got any idea at all?
Regards
Christian Gravgaard,
Theilgaard Mortensen A/S