Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Importing documents within a Document folder
RajanP
Can somebody tell me how to upload the documents inside a document folder? I am able to upload the documents directly under the database. Please tell me how to set the parent moniker id for a document before uploading. Or is there any other method to upload the files inside a folder using COM APIs?
-Rajan
Find more posts tagged with
Comments
Migrateduser
Hi Rajan, not sure if it will help you, because I'm not an expert developing, but once you have created the document object in the database, you will have to call the addReference method to the folder you want to insert the documento into.
Dim fldrContents As IManage.IManDocuments = CType(objFolder.Contents, IManage.IManDocuments)
objDocument = CType(fldrContents.AddDocumentReference(objDocument), IManage.IManDocument)
Where objFolder is the folder where you want to store your document.
And objDocument is the orphan document you have uploaded to the database.
Hope it helps
Javi
RajanP
Hi,
Thanks for the quick reply. It worked.
I have one more query. How can I add folders inside a DocumentFolder using COM APIs?
-Rajan
Migrateduser
Hi Rajan, once you have a Folder/tab object, have you tried?
oFolder.DocumentFolders.AddNewDocumentFolder("Name","Description")
Hope it helps
Javi
RajanP
Hi,
I am able to create the document folders but i want to create the folders inside a document folder.
-Rajan