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
Problem changing document owner or createdby
abrown
Using LAPI 8.1.5:I have a function which creates a document (LL_CreateObjectEx, LL_CreateVersion). I want to change the ownership of the document so it is not owner by me, but by another user (3959).I set the "CreatedBy" field in the object Information to the other user and send it to LL_UpdateObjectInfo. Then I do a LL_GetObjectInfo and pull out the "CreatedBy field - which is still set to my userid.Similarily, I set the "Owner" field to the other userid in the version Information and send it to LL_UpdateVersionInfo, do a LL_GetVersionInfo, pull out the "Owner" field - which is set to my userid.If I run the code (attached) I get the following:test4 - add a file-- initialize successful-- connected to the server anb-1-- accessed Enterprise WS-- volume id is -2000, library id is 2000-- added filename lapistart.h object-- object id of file is 3984 createdby is 3631-- document version 1 added-- Object comment,name field updated-- createdby is now 3631-- Version comment,owner field updated-- ownerid is now 3631return from test4 is 0Any suggestions? Diane Reid (not Allen Brown)
Find more posts tagged with
Comments
DeTeCSMAdmin_(Delete)_2274648
How to change the owner of an item - MotoComp1 01/03/2001 06:14 PMNot really a good solution, but...