3.1.1.1.14.2.1 GetCustomField

The GetCustomField procedure can be used to retrieve the custom field in the form of CustomField for the given record identifier. It takes the following input parameter.

Param_Id: The RecordId of the custom field requested.

The following is the output parameter of this procedure.

Result_customField: This is of type CustomField specifying the custom field instance.

The following are the processing steps involved:

  1. Locate the row in the ADM_CustomFieldsTable that has the RecordId to be Param_Id.

  2. If the row is found:

    1. Set Result_customField.RecordId to be the RecordId of the row.

    2. Copy CustomFieldDetails of the row to Result_customField.

    3. If Result_customField.Type is Multivalued, call the procedure GetCustomFieldValuesForCustomField passing Param_Id. Store Result_customFieldValues to Result_customField.Values.

  3. Return Result_customField as the output value.