Is there any way that from particular Parent folder I can download all the subfolder structure along with the documents?
Hello Aniruddha, There is no single LAPI function to do what you wish to accomplish, however, writing an application to complete that task should not be difficult. You could use the ListObjects function of the LAPI_DOCUMENTS class to list the children of the first container and recursively iterate through children until you have reached every node. For each node you encounter, if the SubType is 144 (Document), you can then use the FetchVersion function to download the most current version of the node. Regards, Kyle
Just wondering if the method you suggested would still work if it was a Project that I wanted to export, along with all sub folders and documents.
If you do not know this every object in livelink has a certain place in dtree .If you look at a object in the EWS then its
ownerid,parentid,dataid,subtype will probably show something like -2000,2000,12345,144. All objects in a Volume(ownerid of the same
means all objects belong to the same volume).
So when you encounter a project subtype (202) they belong to its 'volume'. So your ListObjects call for childern of project just needs to be called with correct values.That is if you know how to do list objects in a folder,then by just observing the values with a database tool will help you.In fact there is a KB article that says "why doesnot listobjects work with projects" terrific article.Just read it and do your programming.
Some new version sof livelink does not allow list objctcs to be called against webnodes or dtree so you have to be mindfrul of that as well.
There is probably lapi code in the communities that I may have put
https://communities.opentext.com/communities/llisapi.dll/wiki/162164/Create a livelink Project
The link is broken but I can probably find the source code somehere if it is useful
it is not what you are looking for but something to take a look at how to do livelink projects .That idea can be exapnded to other volume objects like discussions,tasklists et al
I put a better link there in communities for project handling three java files did not really check what works
Main link https://communities.opentext.com/communities/cs.dll/open/7973190
Specific Link https://communities.opentext.com/communities/cs.dll/open/7973190?func=ll&objId=9433356&objAction=download&viewType=1
Hey Appu,
Thanks for the explaination. I'm fairly new to this as I've never used LAPI before. I just needed to find a way to export a Project with all of the sub folders and documents intact. Thank you for the sample code, it should help me out alot.
Regards,
Sean
BTW if you are starting new you should probably do it with the Web Services API which should have modern easy to understand logic for most of the things ,but in reality many starting principles of livelink still stands many people do not know the concept of ownerid(volumeid)
A C# livelink WSAPI code is basically a no brainer to do ....