Returns all the sessions defined in the repository where the application is connected to, but it sets an order for the search.
GAMRepository.GetSessionLogsOrderBy(in:GAMSessionLogFilter, in:GAMSessionLogListOrder, out:GAMError Collection): GAMSessionLog Collection
Description
Its purpose is the same as that of GetSessionLog method, but it receives an additional parameter which allows setting an order for the search. The parameter is based on 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:
-
Both GetSessionLogsOrderBy and GetSessionLogs allow getting the results by pages, using the GAMSessionLogFilter parameter of the methods (download the example below).
-
You should not use static methods over an instance variable (&GAMSessionLog). So, the following is not correct:
&GAMSessionLog.User.GetId()
Instead, you should use:
&GAMSessionLog.User.GUID