3.1.1.1.14.2.1 GetCustomFieldValuesForCustomField

This procedure can be used to retrieve the CustomFieldValue instances for the custom field values associated with a multivalued custom field. The following are the input parameters for this procedure.

Param_customField: The custom field whose custom field values are being requested.

The following is the output parameter for this procedure.

Result_customFieldValues: This is a collection of instances of type CustomFieldValue specifying the custom field values associated with the specified custom field.

The following are the processing steps involved.

  1. Enumerate the rows in ADM_CustomFieldValuesTable whose CustomFieldRecordId values are equal to the value Param_Id.RecordId.

  2. For each of the rows enumerated, perform the following steps.

    1. Create a new instance of CustomFieldValue with the following values.

      • CustomFieldValue.RecordId is set to RecordId of the row.

      • Copy the CustomFieldValueDetails of the row to CustomFieldValue instance.

      • Set CustomFieldValue.ParentCustomFieldName to Param_Id.Name.

      • Set CustomFieldValue.ParentCustomFieldNumber to Param_Id.BuiltInCustomFieldNumber.

      • Set CustomFieldValue.ParentCustomFieldRecordId to Param_Id.RecordId.

    2. Add the new instance to Result_customFieldValues.

  3. Return Result_customFieldValues as output parameter.