You could at least have provided us with the info, which line causes the error. I sure have an idea, but don’t feel like trying it out myself. And: Use the debugger.
Subject: ““OOO_Agent:Initialize : 17:Not a member:GETAGENT”” error whileexecuting the OOO script for Editor Level User—Urgent please
Thanks a lot for correction…
Plsee the code now…While trying to save …getting the error “OOO_Agent:Initialize : 17:Not a member:GETAGENT”
Sub Initialize
Dim session As New NotesSession
Dim enabled As String
Dim adminp As NotesAdministrationProcess
Dim agent As NotesAgent
Dim userName As Variant
Dim workspace As New NotesUIWorkspace
Dim db As NotesUIDatabase
Set adminp = session.CreateAdministrationProcess(“mailserver1/trial”)
Subject: Latest Code–No Error while saving and executng–Pl.go through the code for corrections-Set Allow User Activation for Edtor access Users
Pl.suggest the changes
Sub Initialize
Dim session As New NotesSession
Dim enabled As String
Dim adminp As NotesAdministrationProcess
Dim ws As New NotesUIWorkspace
Const agentName = "OutOfOffice"
Dim userName As Variant
Dim db As NotesDatabase
Set adminp = session.CreateAdministrationProcess("mailserver1/trial")
userName = "Padma Latha"
Set db = session.CurrentDatabase
Forall a In db.Agents
If a.Name = agentName Then
'Check if the OutOfOffice agent is enabled
If Not a.IsEnabled Then
Call Adminp.ConfigureMailAgent(UserName, agentName, True, False)
Else
Call Adminp.ConfigureMailAgent(UserName, agentName, True, True)
End If
Exit Sub
End If
End Forall