Create document and set custom attributes in one API call
Currently I am using an API call to create a new document, which at the same time fills in custom attributes. The screenshot below shows that particular API call.
This API call works fine. However: the 'parent_id' where this document is stored, has 3 categories. When the API as shown above is executed without the 'body' parameter, all three categories are inherited by the document, but then the custom attributes are not filled. When the 'body' parameter is included, only 1 category is inherited and filled, but the the other 2 categories are not inherited anymore.
So my question is: how can I use the API above to inherit all 3 categories of the 'parent_id' and fill in custom attributes (of one of those 3 categories) in one API call?
Comments
-
I suspect your inclusion of the Categories in the body tag is overriding the inheritance in the OScript side, I'll have a look and see how its working.
0 -
Hi Greg, that is exactly what is happening indeed. Thank you for your help already!
0 -
@Rob_Hooijmaijers1 have you got it resolved now then ? if so do you have a Bug/KB article ?
0 -
Currently I am using two API's: in the first API call, the document is created (and categories are inteherited). In the second API the attributes of one of these categories are updated. This works fine.
I was just wondering whether it is possible to do this in one API call.
0 -
@Rob_Hooijmaijers1 code should merge them, if you dont get an answer here I would log a ticket to get it fixed.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories