Get Current Company and Logged in User from Java Routine in T24

Last updated: 2024-02-14

This code snippet is to fetch the current company record from the which the user is logged in and also the username who is logged in and created transaction

Session ss = new Session();

String companyId = ss.getCompanyId();
CompanyRecord compRec = ss.getCompanyRecord();
String localCountry = ss.getLocalCountry();
String localCurrency = ss.getLocalCurrency();
String loggedInUser = ss.getUserId();
UserRecord userRec = ss.getUserRecord();