Object Moniker (ObjectId) for Folders
I've been digging around trying to find out how to properly format the ObjectId for a folder but haven't found anything.
I'm trying to access calls like getSubFolders and getFolderContents via the API. I'm able to connect just fine and can perform searches, open documents etc. I've seen the following examples but neither are working for me:
!nrtdms:0:!session:[SERVER]:!database:[DATABASE]:!folderrdinary,[prj_id]:
iwl:dms=[SERVER]&lib=[DATABASE]&folder=[prj_id]
Either of those results in the following error: Unable to access the object. It may have been deleted or you may not have security access.
I'm using the admin account for connecting (while testing) so permissions aren't an issue. I can generate that error by passing in valid or invalid prj_id's, or nothing at all in the ObjectId.
Any thoughts?
Comments
-
Finally got back around to this and sorted it so thought I'd post my results.
The correct format of the object moniker for worksite web's API was indeed: !nrtdms:0:!session:[SERVER]:!database:[DATABASE]:!folderrdinary,[prj_id]:
Turns out I was submitting a parameter named ObjectId instead of ObjectID which was returning the unhelpful error message I was getting.
Hope that helps someone else out!
0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.