cancel
Showing results for 
Search instead for 
Did you mean: 

Current user in SBO SDK

Former Member
0 Kudos

Using vb.net in Business One SDK is there a variable from which the user internal-key can be established ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks,

Is there any way ofdoing this through the UI API ?

Regards

former_member201110
Active Contributor
0 Kudos

Hi Barry,

There is a Company object in the UI API as well as the DI API. In the UI API, the company object has a UserName property which returns the USERID value from the OUSR table.


Dim oCompany As SAPbouiCOM.Company = SBO_Application.Company

Dim sUserName = oCompany.UserName

Kind Regards,

Owen

Former Member
0 Kudos

Thanks Owen,

Perfect solution to the problem.

Regards

Barry

Answers (1)

Answers (1)

former_member196647
Contributor
0 Kudos

Hello,

If you are using DI-API you can use, oCompany.UserSignature.

Rahul