Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
createUser returning UID
Nick_Innes_(apacsuser4_-_(deleted))
Hi,I am using createUser in Java to create a new Livelink user and want to get the Livelink unique ID for the new user.My code to do this is below: status = users.CreateUser( USER_NAME, USER_PASS, LAPI_USERS.PRIV_LOGIN | LAPI_USERS.PRIV_UAPI_SESSION | LAPI_USERS.PRIV_DAPI_SESSION | LAPI_USERS.PRIV_WAPI_SESSION, userData, LAPI_USERS.GROUP, USER_GROUP, row, id );System.out.println("LL UID: "+id.toInteger("ID"));A new user is created successfully but the following error is produced when trying to retrieve the user ID:com.opentext.api.LLIllegalOperationException: get(name) not implemented for this datatype at com.opentext.api.LLInstance.get(LLInstance.java:76) at com.opentext.api.LLValue.toInteger(LLValue.java:809)Please can someone advise on what the code should be.Thanks
Find more posts tagged with
Comments
eLink User
Message from Carsten Kulms via eLinkThe output parameter is a LLValue of type integer, so it has no namedcomponents (like an Assoc has). Therefore you have to use id.toInteger()to retrieve the user's numerical id as native int.