You can retrieve custom fields from any of the objects that extend EnterpriseEntity, as shown in the following code:
record.getCalendarDateFieldValue("fieldName"); record.getLookupFieldValue("fieldName"); |
If a custom field is part of a non-Root category, you must include the tree position when retrieving the value of the custom field:
record.getBooleanFieldValue("TREE_POSI", "fieldName"); record.getLookupFieldValue("TREE_POSI", "fieldName"); |
In the following code sample, you can get the value of the LossAmount custom field of type Number, which has a category with the full tree position CLAM_FEAT:
record.getNumberFieldValue("LossAmount", "CLAM_FEAT"); |
For a complete sample, see the Comparing Custom Field Qualifiers sample.