Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add version to a document on LiveLink

Status
Not open for further replies.

samyak260590

Programmer
Feb 17, 2016
6
IN
We are using the LiveLink document management WSDL provided services to store documents on Livelink.
we are using the CreateDocument operation to upload the document to LiveLink. But when are trying to upload it again it is giving us the response that document already exists.
Can you suggest how we can add a version to the existing document. Which operation can be used to achieve this?
We are using SOAP UI tool for uploading the documents to LiveLink.
 
A proper method is like this Psuedo Code shown.

Users code Trying to Add a Document with name such as 'MyDocument' with a container id will work only once simply,it can vary based on case sensitive dms etc so usually what one does is when you get an error that says "an item with that name exists" so one would write a code block that says if addable first then it is a new object with its first version,else you write code to add a version.To add to a existing version one should interrogate the node(dataid,objid).AddVersion and AddvErsioncontext is the command that gives you that.Some people prefer to ask the container if an item by name exists and handle it that is another approach.

Simply said OT API's do not give you the shortcut command that works like this "if a item exists by the same name add a subsequent version"

SOAPUI is in my opinion something to test stuff I am not sure or have not used it to create heavy applications.It will fail you in many situations like metadata etc so if possible switch to C# or java and using soapui .Or if your livelink supports REST then use that.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top