NeilJohnEvans
asked on
LOtusscript Scheduled Agent access to calendar fails to get entries on
When running lotusscript Agent manually on domino 9.01 all works but scheduled and run on server with same user and level 3 permissions
I have access to the maildb but the getentries does not return any
I have access to the maildb but the getentries does not return any
Call reg.GetUserInfo(uname, mailserver$, mailfile$, maildomain$, mailsystem%, profile$)
Set maildb = session.getdatabase(mailserver$,mailfile$)
If Not maildb Is Nothing then
Call agentlog.LogAction("mailserver:" + mailserver$ + "mailfile:" + mailfile$ + "maildb is ok")
Else
Call agentlog.LogAction("mailserver:" + mailserver$ + "mailfile:" + mailfile$ + "maildb not ok")
End if
Set cal = Nothing
Set caldoc = Nothing
Set caledoc = Nothing
sunid = ""
Set cal = session.getCalendar(maildb)
If Not cal Is Nothing Then
Call agentlog.LogAction("got cal")
Else
Call agentlog.LogAction("cal failed")
End If
Dim ent As Variant
ent = cal.Getentries(dt1,dt2)
If ent Is Nothing Then
Call agentlog.LogAction("ent is nothing")
End If
ForAll calent In cal.Getentries(dt1, dt2)
Set caledoc = calent.Getasdocument()
If Not caledoc Is Nothing Then
Call agentlog.LogAction("caledoc is ok" + caledoc.Universalid)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nice! :-)
ASKER
I ended up fixing the issue myself