Get User Id

getUserId(p_companyID, p_wsAltUserId)


You can use this endpoint to retrieve the user id from our software based on the wsAltUserId value.


Name Type Required Description
p_companyID string Yes The security code you have been provided with, string (32)
p_wsAltUserId string Yes The wsAltUserId code for which we need to search and retrieve the user id from our database

Return values

An integer that can be anything between 1 - N, which represents the last user id which was added to the database.

'NO_WS_ALT_USER_ID_INFOFIELD' - the company does not have an infofield set as wsAltUserId.

'NO_USER_ID_FOUND' - No user id found based on the wsAltUserId provided.


<soapenv:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soapenv="" xmlns:uen="uen:esws">
<uen:Esws.getUserId soapenv:encodingStyle="">
<p_companyID xsi:type="xsd:string">^4p;tU0Q+#dEIhTWkuj5FnLD^aKWqVu0</p_companyID>
<p_wsAltUserId xsi:type="xsd:string">123456789</p_companyID>


<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="" xmlns:SOAP-ENV="" xmlns:xsd="" xmlns:xsi="" xmlns:SOAP-ENC="">
<ns1:Esws.getUserIdResponse xmlns:ns1="uen:esws">
<return xsi:type="xsd:string">2179</return>