Link to home
Start Free TrialLog in
Avatar of NeilJohnEvans
NeilJohnEvansFlag for Australia

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

                  
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)

Open in new window

SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Nice! :-)
Avatar of NeilJohnEvans

ASKER

I ended up fixing the issue myself