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
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories