Skip to main content
1 of 3
Bhavya
  • 113
  • 3

How to read schema fields (especially xml type) from tridion using core service factory java?

I am able to read xml name, description, details whether it is mandatory or multivalue using core service factory java. I am not able to read xml type. There is no method called 'Gettype'. Could anyone please tell me how to retrieve xml type? Thanks in advance! My code goes like this. ICoreService oClient = CoreServiceFactory.getBasicHttpClient(); SchemaFieldsData schemaData = oClient.readSchemaFields(str, true, null ArrayOfItemFieldDefinitionData design=schemaData.getFields(); List design_item = design.getItemFieldDefinitionData(); for(ItemFieldDefinitionData loopVariable : design_item) { String xmlName=loopVariable.getName(); String description=loopVariable.getDescription(); String multiValue=(loopVariable.getMaxOccurs()==1) ? "No" : "Yes"; String mandatory=(loopVariable.getMinOccurs()==1) ? "Yes" : "No"; }

Bhavya
  • 113
  • 3