Hi,
I am using the CLASSUserActivity for reading the useractivities of the databases on server via scheduled agent.
I was getting the error “Operation disallowed in this session” when I have Agent security as “Do not allow restricted operations”
But when I changed it to “Allow restricted operations” It went well.
Can any one please tell me why it needs “Allow restricted operations”
Here is the code which throws above error:
'Open the target database
rc = W32_NSFDbOpen(sDatabase,Me.hDb)
and the declartion is :
Declare Function W32_NSFDbOpen Lib “nnotes.dll” Alias “NSFDbOpen” ( Byval dbName As String, hDb As Long) As Integer