Search in sources :

Example 1 with CustomRecordType

use of com.netsuite.webservices.v2016_2.setup.customization.CustomRecordType in project components by Talend.

the class CustomMetaDataRetrieverImpl method retrieveCustomRecordCustomFields.

@Override
public Map<String, CustomFieldDesc> retrieveCustomRecordCustomFields(RecordTypeDesc recordType, NsRef nsCustomizationRef) throws NetSuiteException {
    List<?> customizationList = retrieveCustomizations(Collections.singletonList(nsCustomizationRef));
    if (customizationList.isEmpty()) {
        return null;
    }
    CustomRecordType customRecordType = (CustomRecordType) customizationList.get(0);
    List<?> customFieldList = customRecordType.getCustomFieldList().getCustomField();
    Map<String, CustomFieldDesc> customFieldDescMap = DefaultCustomMetaDataSource.createCustomFieldDescMap(clientService, recordType, BasicRecordType.getByType(nsCustomizationRef.getType()), customFieldList);
    return customFieldDescMap;
}
Also used : CustomRecordType(com.netsuite.webservices.v2016_2.setup.customization.CustomRecordType) CustomFieldDesc(org.talend.components.netsuite.client.model.CustomFieldDesc)

Aggregations

CustomRecordType (com.netsuite.webservices.v2016_2.setup.customization.CustomRecordType)1 CustomFieldDesc (org.talend.components.netsuite.client.model.CustomFieldDesc)1