API - Return subset of results.
Options
Im using the POST api/v2/search api for 16.2. I only want the ID values for each returned result;
"results": [ { "data": { "properties": { "id": 1897009,
and not the following entire resultset;
"results": [ { "data": { "properties": { "container": true, "container_size": 0, "create_date": "2016-09-15T16:37:07", "create_user_id": 40278, "description": "", "description_multilingual": { "en_GB": "" }, "due_date": null, "external_create_date": null, "external_identity": "", "external_identity_type": "", "external_modify_date": null, "external_source": "", "favorite": false, "goals": "", "id": 1897009,
I've tried using fields?id etc but no dice. Perhaps that's not immplemented.
Anybody know how to achieve this?
Tagged:
0
Comments
-
this is an API call, so there is no way to change it from the API side, you would need to extend it on the server side in OScript to add a new API method to do what you require. If you want the same behaviour for ALL searches you may be able to patch that code instead of adding a new API method.
0 -
the latest REST API does support this, e.g. https://host/otcs/cs.exe/api/v2/nodes/332165/nodes?fields=properties{id,name,type,parent_id,container,container_size}
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 122 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management