Customer Defined Fields property

In the Customer Defined Fields property, you can select the CDFs to add to the extension. Click Details in the property value cell to show the list of available CDFs. To add CDFs to the extension, you must select the Selected check box for those CDFs.

For each selected CDF, these additional properties are available:

Name
Selected
Name
Description
Type
Computed
Computed Default

Selected property

Select this check box to add the CDF to the extension.

Name property

You can specify the name to be used for the CDF in the REST API. If this field is blank, the technical field name is used.

Description property

Specify the description to be used for the CDF in the REST API.

Type property

Select the OData data type to be used for the CDF in the REST API.

The default OData data type for a CDF depends on the CDF's domain in LN. Depending on the domain, you may be able to select another OData data type from the list.

For example, you add these CDFs to an OData REST API extension:

  • Maximum Number - This CDF has domain tccdf____int. The default Odata data type for this CDF is EDM.Int32. You can change this to Edm.duration or Edm.TimeOfDay.
  • Extra Information - This CDF has domain tccdf____str030. The default Odata data type for this CDF is EDM.String You can change this to EDM.Guid.
  • Creation Date - This CDF has domain tccdf____dat. The default Odata data type for this CDF is EDM.DateTimeOffset. You cannot change this.

Computed property

If this check box is selected, a computed value for this property is generated by the server logic on insert and update.

Computed Default property

If this check box is selected, if no value is provided on insert, a non-static default value is generated.