cancel
Showing results for 
Search instead for 
Did you mean: 

company.username does not get refreshed

Former Member
0 Kudos

Hi,

To get the currently logged in user's name, I use oCompany.Username property and get the name for some validation. but, when I don't exit from SAP B1 and change the user from 'Choose Company' window, that property still gives me the previously connected user's name. has anybody faced this issue before or I am doing something wrong?

thanks and regards,

Binita

Accepted Solutions (1)

Accepted Solutions (1)

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

You need to get the company change event from UI API (it is an Application level event) and then connect again to the company - most likely using single sign-on.

Answers (0)