GAMRepository.GetSessionLogsOrderBy(in:GAMSessionLogFilter, in:GAMSessionLogListOrder, out:GAMError Collection): GAMSessionLog Collection
Description
Its purpose is the same as that of GetSessionLogs method but it receives an additional parameter which allows setting an order for the search. The parameter is based on GAMSessionLogListOrder domain.
For &GAMSessionLog in GAMRepository.GetSessionLogsOrderBy(&GAMSessionLogFilter, GAMSessionLogListOrder.Date_Desc, &Errors)
&GAMSessionToken = &GAMSessionLog.Token
&GAMUserlogin = &GAMSessionLog.AuthenticatedLogin
&GAMSessionStatus = &GAMSessionLog.Status
&LoginDate = &GAMSessionLog.LoginDate
EndFor
Notes:
1. Both GetSessionLogsOrderBy and GetSessionLogs allow getting the results by pages, using the GAMSessionLogFilter parameter of the methods (download the example below).
2. You should not use static methods over an instance variable (&GAMSessionLog). So, the following is not correct:
&GAMSessionLog.User.GetId()
Use &GAMSessionLog.User.GUID instead.
|