customRec.setTypeId("626"); customRec.setInternalId("202");
ReadResponse response=_port.get(customRec);
CustomRecord record=(CustomRecord)response.getRecord();
CustomFieldList fields=record.getCustomFieldList();
CustomFieldRef[] crcf=fields.getCustomField();
int i=1;
Map<String,Object> test=new HashMap<String,Object>();
for(CustomFieldRef c:crcf)
{
System.out.println(c.getScriptId());
if(c instanceof StringCustomFieldRef)
{
test.put(p.getProperty(c.getScriptId()),((StringCustomFieldRef)c).getValue());
}else if(c instanceof DateCustomFieldRef)
{
test.put(p.getProperty(c.getScriptId()),((DateCustomFieldRef)c).getValue().getTime());
}
else if(c instanceof LongCustomFieldRef)
{
test.put(p.getProperty(c.getScriptId()),((LongCustomFieldRef)c).getValue());
}
//System.out.println(c.getLabel()+" fieldtypes: "+c.getFieldType().getValue());
i++;
}
for(Map.Entry<String,Object> entry:test.entrySet())
{
System.out.println(entry.getKey()+"--->"+entry.getValue());