Skip to main content
Used to populate the Admin configuration dialog for a connection. The call to the ERP Connector’s GetConfigurationFields method returns a list of fields and field types. The Admin client builds a dialog with these fields.

Constructors

NSFieldMetadata()

Initializes a new instance of the NSFieldMetadata class.

Methods

GetAccess()

Returns: CRMScript.Global.Integer - Access restrictions on the field. See <xref href=“CRMScript.NetServer.FieldAccess” data-throw-if-not-resolved=“false”></xref> Example:

GetDefaultValue()

Returns: CRMScript.Global.String - A default value for the field. Example:

GetDisplayDescription()

Returns: CRMScript.Global.String - Tooltip for the field name. Example:

GetDisplayName()

Returns: CRMScript.Global.String - Localized field name – shown in the GUi. Example:

GetFieldKey()

Returns: CRMScript.Global.String - Internal key/name of the field. Used as the key in the ConnectionConfigField values when TestConnection is called. Example:

GetFieldType()

Returns: CRMScript.Global.Integer - Text, Integer, etc. See <xref href=“CRMScript.NetServer.FieldMetadataType” data-throw-if-not-resolved=“false”></xref>. Example:

GetListName()

Returns: CRMScript.Global.String - MDO List provider name for list fields. Example:

GetMaxLength()

Returns: CRMScript.Global.Integer - Maximum length for strings, if set. 0 means no restriction. (Though sooner or later something will no doubt overflow if you pile on the gigabytes.). Example:

GetRank()

Returns: CRMScript.Global.Integer - A way to set the order of the fields. Lowest value will be displayed first/over the fields with other values. Example:

GetShowInSearch()

Returns: CRMScript.Global.Bool - True if this field is displayed in search result. Example:

SetAccess(Integer)

Returns: CRMScript.Global.Void Example:

SetDefaultValue(String)

Returns: CRMScript.Global.Void Example:

SetDisplayDescription(String)

Returns: CRMScript.Global.Void Example:

SetDisplayName(String)

Returns: CRMScript.Global.Void Example:

SetFieldKey(String)

Returns: CRMScript.Global.Void Example:

SetFieldType(Integer)

Returns: CRMScript.Global.Void Example:

SetListName(String)

Returns: CRMScript.Global.Void Example:

SetMaxLength(Integer)

Returns: CRMScript.Global.Void Example:

SetRank(Integer)

Returns: CRMScript.Global.Void Example:

SetShowInSearch(Bool)

Returns: CRMScript.Global.Void Example: