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
Returning the nickname or url after adding version to LL
Rudie_Bronkhorst_(rudieb@iasystems.co.za_-_(delete
is there any way I can return the URL or nickname of a newly created object.This is my code to add the version://Setup any information for creation LLValue createInfo = (new LLValue()).setAssocNotSet(); LLValue request = (new LLValue()).setAssocNotSet(); request.add("Comment", DocComments); createInfo.add("request", request); //Create the document object in Livelink if(doc.CreateObjectEx(volumeID, dataID, LAPI_DOCUMENTS.OBJECTTYPE, LAPI_DOCUMENTS.DOCUMENTSUBTYPE, MyDocName, createInfo, objectInfo)!=0) { return "Error in object creation"; } else Console.WriteLine ("Document Object Created."); //create the output variable versionInfo, which will contain the version's information LLValue versionInfo = (new LLValue()).setAssocNotSet(); //Add a version to the document object if(doc.CreateVersion(volumeID, objectInfo.toInteger("ID"), FileName, versionInfo)!=0) { return "Error in version adding"; } else Console.WriteLine ("Document version added");Will appreciate any help.
Find more posts tagged with
Comments
Appu_Nair
Maybe is this what you are lookng for.From your code ths is the nodeid that was created objectInfo.toInteger("ID")so the URL to access this would be
http://?func=ll&objid=>&objAction=properties.I
am not sure if there s a function that would return you the configured http address of the livelink instance.Only your livelink admin will probably know what the http address is.Theory is every object has a objid that is ynique to that livelink.If you have not assigned a nickname then the objid is the nickname.If you want to get the nickname provided you know the objid you could use the apidoc function GetObjectNickname() which would return you the friendly string.I very much doubt if that is going to give you the http base address anyways.Sorry all this form documentation did not try any of these myself.
Rudie_Bronkhorst_(rudieb@iasystems.co.za_-_(delete
Worked thank you!!