3.1.1.1.2.2.2 SetCustomFieldValues
The SetCustomFieldValues procedure is used to add the custom field values associated with an object into the IPAM data store.
The following are the input parameters for this procedure:
Param_ObjectType: This is of type EnumerationObjectType, specifying the type of the object for which the custom field values are being added.
Param_addressFamily: This is of type AddressFamily, specifying the address family of the object for which the custom field values are being added.
Param_ObjectRecordId: This is a 64-bit signed integer specifying the RecordId of the object of type Param_ObjectType for which the custom field values are being added.
Param_CustomFieldValuesCollection: This is a collection of CustomFieldValue providing the custom field values to be added to the IPAM data store.
No output is associated with the parameter other than updating the IPAM data store with the values specified.
The following are the steps involved:
Delete the existing custom field values in the table for the specified Param_ObjectType, Param_addressFamily and Param_ObjectRecordId.
For each row in the Param_CustomFieldValuesCollection, add an entry in the ADM_CustomFieldValuesTable:
Assign Param_ObjectType to ObjectType.
Assign Param_addressFamily to Af.
Assign Param_ObjectRecordId to UsedById.
Assign CustomFieldValue.ParentCustomFieldRecordId to CustomFieldId.
Assign CustomFieldValue.RecordId to CustomFieldValueId.
Assign CustomFieldValue.Value to Value.