GetSessionLogsOrderBy Method

Official Content


GAMRepository.GetSessionLogsOrderBy(in:GAMSessionLogFilter, in:GAMSessionLogListOrder, out:GAMError Collection): GAMSessionLog Collection


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


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:
Use &GAMSessionLog.User.GUID instead.

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.