Can anyone suggest a method to fetch the object id of list of folders using LAPI.
I am having parentid "123456" and i have 10000's of folders under that. I have a name list of folders for those i need object ids.
Lapi has a listobjects.lapi has been deprecated used webservices from OT
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
[highlight #D3D7CF] int docID = 434697472;
int volID = 0;
LAPI_DOCUMENTS dok = new LAPI_DOCUMENTS(session);
LLValue children = new LLValue().setAssoc();
LLValue childrenNumber = new LLValue().setAssoc();
I am not sure I understand your problem.Livelink is a hierarchical arrangement of nodes see example
Enterprise(usually 2000)
My Folder(12345)
My second folder(35678)
if you use a SQL tool then if you join dtree and dtreeancestors you will be able to walk top dowm or bottom up.
LAPI is not a report generating tool saay you found that objectid 35678 then you could do an operation on it like copy,delete etc.
If you do ListObjects(2000) in my example you will get the record of 12345 and will not get 35678 as the listobjects will not recurse.
You have to write the recursion.Nobody uses lapi for the last two years or so hence you will find more efficient ways of node manipulation travesring etc if you use
web services.The LLvalue header you prited is a nmae value pair of a view(dtree) for that object.
If your db is oracle then you can simply join dtree and dtreeanscestors or even use Oracle's recursion
SQLserver has something called CTE's that will do recursion.
select name,dataid,subtype from dtree connect by prior dataid=parentid start with 2000 (saying from memory google connect by prior)
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
Yes but it is way more complicated to use Lapi list objects in a reporting project.
Sounds overkill when such a requirement can be gotten very easily via a straight sql query.
I could be mistaken because you might be doing node manipulation as well.For what its worth
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.