The Solution how to look up VolumeID's and ObjectID's
I am programming with livelink API's now for two weeks, using this documentation, so now I want to share my expirience with others...To look up Id's using the name of the object (code in VB)---------------------------------------------------------'Initialise variablesLL_ValueAlloc MapLL_ValueAlloc tmpDim tmpVol As LongDim tmpID As Long'Get the list of objects with specified objectnamestatus = LL_ListObjects(session, ParentVolId, ParentId,_"", "Name = " + "'" + "Objectname" + "'", LL_PERM_SEE, Map)'Get the amount of objects that you receive as result (-1 'is not found (you can check on that) status = LL_ValueGetLength(Map, length)'Get the object with index 0 (=the first)status = LL_ValueGetIndexValue(Map, 0, tmp)'Extract the ID'sstatus = LL_RecordGetInteger(tmp, "VolumeID", tmpVol)status = LL_RecordGetInteger(tmp, "ID", tmpID)usage with Documents--------------------LL_ValueAlloc tmp1LL_ValueAlloc tmp2status = LL_AddDocument(session, tmpVol, tmpID, name, Path, tmp2, tmp1)usage with newsitems--------------------LL_ValueAlloc OutObjInfostatus = LL_CreateObject(session, tmpID, -tmpID, LL_OBJECTTYPE, LL_NEWSSUBTYPE, NewsName, OutObjInfo)