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
Move the folder with Categories
Mahesh_Pinnamaneni
Hi,I need to move a folder(this folder has different folders and documents and all of them has a single category attached and also the arrtibutes values were same) from one folder to other. While moving the folder and its contents, i need to change one category attribute value for all its contents and then move. any idea how this can be done VIA LAPI?Thanks,Mahesh
Find more posts tagged with
Comments
Appu_Nair
I did not quite understand this.I think what you are asking is this.CATA is applied at start folderid 1000.CATA:ATTR1=MAHESHCATA:ATTR2=PINNANMENIYou now want For all children of 1000 CATA:ATTR1 should change to MAHESH while leaving out existing values.Or Do you want to copy all the attr values to subchildren?if there is only one category involved by clicking clear existing categories,and setting the start with the correct values will accomplish this.If there are more than a category involved clear existing cats will clear the cats applied to itif you have OI or syntergy bulkloader you might try to write an xml file with the same logic.I have understood that doing these kind of things with oscript if far too easier and understandable.
Mahesh_Pinnamaneni
Yes, this is what I am expecting.The root folder has only one category and this should be applied to all sub folders and documents when i use the move operation. I am thinking to do this with LAPI
Appu_Nair
if you cannot use the GUI command then in lapi you have to create arecursive function that expends the chldren nodes and use setobjectcategories to do the manipulation.Rememeber lapi listobjects have some limitations crawling projects( read volumes and -ve dataid's )so I would test whether the code is smart enough to traverse projects,compound documents and such like.If it was oscript you just needed a nodecrawler object
would have made your iterations much easier.Another thought would be to build a result set using oracles connect by clause and getting the nodes to work on but that would involve you using a direct database call and would not be lapi a 100 %
Mahesh_Pinnamaneni
Thanks for the thoughts....I thought of using LR and use the connect by prior clause in LR to get the list of DataId's in LAPI program...Looks like OT has to support more LAPI functions..