cancel
Showing results for 
Search instead for 
Did you mean: 

UserName in core based api

Mark_Rogers4
Champ in-the-making
Champ in-the-making

I have a vbscript that needs the current user's id.  For the thick client, I have:

Set LobApplication = CreateObject("OnBase.Application")

Dim userName

userName = LobjApplication.UserName

That works just fine, but I need the same information from core services so that the vbscript is compatible with both thick and web clients. 

Does anyone know what the core based equivalent is?

 

7 REPLIES 7

Seth_Yantiss
Star Collaborator
Star Collaborator

[quote user="LHerndon"]I know the core API is deprecated but here is the proper code.
Set objUser = objSession.User
username = objUser.Name

And I missed this post, somehow...  Reading is hard!

Thanks LHerndon

Lance_Kannard
Confirmed Champ
Confirmed Champ

Seth,

Here are the common User Properties available from the IOBXUser Class.

Dim UserSet User = session.UserDim UserIDUserID = User.IDDim UsernameUsername = User.NameDim DisplayNameDisplayName = User.DisplayName

Seth_Yantiss
Star Collaborator
Star Collaborator

Very helpful!!!!   Thanks Lance!

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.