I have a system running Sage 100 v2017 Advanced (with update 1). In my script I'm returning the company code via a message box, but I'm getting a random company code, not the one that I'm actually logged into.
Has anyone else had problems with the osession.companycode?