Table of contents

Official Content

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


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


  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:


Instead, you should use:




Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant