Can not retrieve Relations using API
Hello,
I have a relation in my Content Type Definition. And I am trying to retrieve that relation using the following code
AttributedObject[] relatedProducts = ci.getRelations( "RELATION-ID" );
But I am getting the null value.
I also checked whether there are any relations available with
Arrays.toString(ci.getAttributeNames());
But that also returns an empty array.
Do I need to make any change in my CTD, so that the relation starts to appear to the API?
0
Comments
-
Relation name is different from Field name, you seem to be using a field name and not Relation XML name.
AttributedObject[] relatedProducts = ci.getRelations( <relantion-xml-name> );
I hope this helps.
0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 149 General Questions
- 148 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 181 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories