Skip to Content
0
Former Member
May 20, 2009 at 08:37 PM

Create User and link it to new Employee

45 Views

Good Day Everyone,

I have successfully created a VB script that handles the registration of a new User in our SBO Company, but I cannot find the way to link it with a new Employee card. It is my understanding that I need to associate these two objects through the following code:

oEmployee.ApplicationUserID = oUsr.InternalKey

How can I retrieve the newly created userid as the use of a mere

oUsr.InternalKey

returns 0 ?

Is it the correct way to proceed ?

Thank you for your answers,

Jean-Philippe

Edited by: donbuz on May 20, 2009 10:39 PM