3.1.1.1.15.2.1 GetCustomFieldValuesForCustomField

The GetCustomFieldValuesForCustomField procedure retrieves the CustomFieldValue instances for the custom field values associated with a multivalued custom field.

The following input parameter is used.

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 processing steps are performed:

  1. Enumerate the rows in ADM_CustomFieldValues whose CustomFieldRecordId has the value Param_customField.RecordId.

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

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

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

      2. Copy the CustomFieldValueDetails of the row to CustomFieldValue instance. 

      3. Set CustomFieldValue.ParentCustomFieldName to Param_Id.Name

      4. Set CustomFieldValue.ParentCustomFieldNumber to Param_Id.BuiltInCustomFieldNumber

      5. Set CustomFieldValue.ParentCustomFieldRecordId to Param_Id.RecordId

    2. Add the new instance to Result_customFieldValues.

  3. Return Result_customFieldValues as output parameter.