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:
Enumerate the rows in ADM_CustomFieldValues whose CustomFieldRecordId has the value Param_customField.RecordId.
For each of the rows enumerated, perform the following steps:
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.
Add the new instance to Result_customFieldValues.
Return Result_customFieldValues as output parameter.