I have a Business Object called audittlogonoff.
I have set-up a LogInNotificayion of type when loginnotification is received to create an entry in this BO. It sroes the date, login user and an attribute to state 'LogIn'. This works fine.
I have tried the same for LogOut notification, but if I use either When Received or When Created it will not create the audittlogonoff object entry. Is there some different method used for LogOut ?
LogIn When Received (working):
CREATE AuditLogOnOff WITH AuditLogOnOff.UserName=LoginNotification.LoginName,AuditLogOnOff.DateTime=CURRENT_TIMESTAMP,AuditLogOnOff.LogType='LogIn'
LogOut When Created or Received (Not working)
CREATE AuditLogOnOff WITH AuditLogOnOff.UserName=LogoutNotification.LoginName,AuditLogOnOff.DateTime=CURRENT_TIMESTAMP,AuditLogOnOff.LogType='LogOut'