eDocs Integration - DM API, Retrieve folder items
Hello,
eDocs 16.4 version.
I'm trying to look up the items in a folder using the DM API (configured with the HTTP protocol), but I'm not succeeding.
I have a document as listed in the version table below:
VERSION Table:
VERSION_ID 652234
DOCNUMBER 610406
VERSION 1
SUBVERSION !
VERSION_LABEL 1
AUTHOR 5954466
TYPIST 5954466
LASTEDITDATE 2021-06-04 21:09:25
LASTEDITTIME
COMMENTS
FORCE_VERSION_RO
STATUS 0
ARCHIVE_ID 0
READONLY_DATE 1900-01-01 00:00:00
NEXT_PUBLISH_VER 0
PUBLISH_DATE 1900-01-01 00:00:00
PREV_STATUS 0
CONTAINER_TYPE F
CACHE_SERVER
CACHE_PATH
CACHE_STATUS 0
MAIL_ID
PARENTMAIL_ID
THREAD_NUM 0
ATTACH_NUM
I have an entry for this document in the folder items table:
FOLDER_ITEM Table:
SYSTEM_ID 5954526
NODE_TYPE D
PARENT 610406
PARENT_LIBRARY 0
REMOTE_SYSTEM_ID 0
ISFIRST Y
NEXT 0
LIBRARY 0
DOCNUMBER 610405
VERSION_TYPE R
VERSION 0
PARENT_VERSION 652234
DISPLAYNAME Laubstein Folder 2
HAS_PROPS READONLY_DATE 1900-01-01 00:00:00
PREV_VERSION_TYPE
STATUS 0
FOLDERDOCNO_RO 0
FOLDERREMLIB_RO 0 URL_ADDRESS CHILD_LINK 0
The call I'm making following the api manual is as follows:
private void SearchWorkspace(String library, String dst) { var folderId = "610406"; var folderVersionId = "652234"; PCDPropertyLists propLists = new PCDPropertyLists(); propLists.SetDST(dst); propLists.SetObjectType("ContentsCollection"); propLists.SetProperty("%TARGET_LIBRARY", library); propLists.SetProperty("PARENT", folderId); propLists.SetProperty("PARENT_VERSION", folderVersionId); propLists.Execute(); var folderItems = String.Empty; while (propLists.NextRow() == 1) { propLists.NextRow(); folderItems = folderItems + "DISPLAYNAME: " + propLists.GetPropertyValue("DISPLAYNAME") + "\n"; folderItems = folderItems + "SYSTEM_ID: " + propLists.GetPropertyValue("SYSTEM_ID") + "\n"; folderItems = folderItems + "DOC NUMBER: " + propLists.GetPropertyValue("DOCNUMBER") + "\n"; folderItems = folderItems + "NODE TYPE: " + propLists.GetPropertyValue("NODE_TYPE") + "\n"; folderItems += "\n"; } }
The code does not throw any errors, but it does not list any entries found, using the Windows DM Explorer Extension with the same user as I am
using in code I can access the folder and see in the tree view the document contained within it.
Someone would know how to help me, am I forgetting something?
Thanks
Comments
-
The code looks correct, but we must be missing something. Can you compare the DM Server log from fetching the contents from DM Ext to the log generated from your code?
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 102 General Questions
- 123 Services
- 40 OpenText Hackathon
- 33 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 901 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 127 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax