Hallo,
i have the issue, that i need to copy several documents into Folders with categories. The aim is, that the Documents get the Categories and Attributs of the new parent. (The parent has also mandatory Attributs, which should be the same in the copied document)
Doing it manualy with the appropriate copy-Option works fine.
With OScript, i can not yet get it working
I did the following without succes:
DAPI.CopyNode(dummyNode, parentNode)
-->> the Document is copied correctly without errors, but without any categories
-->> i can open and edit the Copied Document (a txt file)
DAPI.CopyANode(dummyNode, parentNode, newNode, DAPI.COPY_DST_CAT)
-->> the function returns 0 (so i expect it sould be ok, isn't it
-->> there is a new Node created with the name of newNode.pName
-->> but the Node has now Link on it
-->> there are no Categroies on the Node
-->> "edit" link is missing
-->> clicking "open" returns: Livelink Error: Error opening item. [The version is not found.], E681902084: The version is not found.:
-->> clicking "download" returns:Livelink Error: Error processing request. [Error getting version from the database.], E681902084: The version is not found.:
DAPI.CopyANode(dummyNode, parentNode, newNode, DAPI.COPY_DST_CAT | DAPI.COPY_CURRENTV)
-->> the function returns: Could not create path.
-->> there is node created created with the name of newNode.pName
-->> but the Node has now Link on it
-->> there are no Categroies on the Node
-->> edit, open, download as above
DAPI.CopyANode(dummyNode, parentNode, newNode)
-->> the function returns 0
-->> there is node created created with the name of newNode.pName
-->> but the Node has now Link on it
-->> there are no Categroies on the Node
-->> edit, open, download as above
What's the correct way to copy existing Documetns in a way, they get the Categories of the parent Folder by OScript?
Or what is best to debug the above mentioned Functions?
Thomas