Show / Hide Table of Contents

Class ErpFieldRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the ErpField table.

Inheritance
Object
ErpFieldRecordData
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class ErpFieldRecordData
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

ErpFieldRecordData()

Declaration
public ErpFieldRecordData()

Fields

Access

Access restrictions for the field

Declaration
public FieldAccess Access
Field Value
Type Description
FieldAccess

CrmFieldKey

The CRM field name, as implemented by the Sync entities

Declaration
public string CrmFieldKey
Field Value
Type Description
String

DefaultValue

Default value, stored using CultureDataFormatter format if it is not a string

Declaration
public string DefaultValue
Field Value
Type Description
String

DisplayDescription

Tooltip for the field name.

Declaration
public string DisplayDescription
Field Value
Type Description
String

DisplayName

Localized field name – shown in the GUI as the label for the control.

Declaration
public string DisplayName
Field Value
Type Description
String

ErpConnectionActorTypeId

Link to Erp Connection/Actor type

Declaration
public int ErpConnectionActorTypeId
Field Value
Type Description
Int32

ErpFieldId

Primary key

Declaration
public int ErpFieldId
Field Value
Type Description
Int32

ErpFieldKey

The ERP field key

Declaration
public string ErpFieldKey
Field Value
Type Description
String

FieldType

Field type

Declaration
public FieldMetadataType FieldType
Field Value
Type Description
FieldMetadataType

FirstSyncDefaultValue

The default value to be set, can be blank

Declaration
public string FirstSyncDefaultValue
Field Value
Type Description
String

HasFirstSyncDefaultValue

Should a default value be set on first sync

Declaration
public short HasFirstSyncDefaultValue
Field Value
Type Description
Int16

ListName

The ERP list name, if the field has a list of values supplied by the ERP Connector

Declaration
public string ListName
Field Value
Type Description
String

ListReference

Reference to CRM list, if a mapping exists. Format: table=<table name>[&<extra id>=<value>], to make it independent of actual table numbers

Declaration
public string ListReference
Field Value
Type Description
String

Mandatory

Should the user be forced to set a value (the Erp Connector may declare fields mandatory as well)

Declaration
public short Mandatory
Field Value
Type Description
Int16

MaxLength

Maximum size of the field, if there is a limit

Declaration
public int MaxLength
Field Value
Type Description
Int32

MissingInERP

Set to true if this field has previously been defined, but was no longer in the 'supported fields' response from the connector. This typically happens if the target ERP system changes, and means the field needs to be unmapped.

Declaration
public short MissingInERP
Field Value
Type Description
Int16

PromptUser

Should the field be shown in the first-sync GUI; independent of whether a default value should be set

Declaration
public short PromptUser
Field Value
Type Description
Int16

Rank

Rank order of lines in GUI, relevant if ShowInGui is true

Declaration
public int Rank
Field Value
Type Description
Int32

Registered

Registered when in UTC.

Declaration
public DateTime Registered
Field Value
Type Description
DateTime

RegisteredAssociateId

Registered by whom

Declaration
public int RegisteredAssociateId
Field Value
Type Description
Int32

ShowInGui

Should this field be shown as a (read-only!) field in the CRM Gui

Declaration
public short ShowInGui
Field Value
Type Description
Int16

ShowInSearch

Should this field be shown in searches

Declaration
public short ShowInSearch
Field Value
Type Description
Int16

SyncToCrm

Should value changes in ERP be automatically transferred to CRM

Declaration
public short SyncToCrm
Field Value
Type Description
Int16

SyncToErp

Should value changes in CRM be automatically transferred to ERP

Declaration
public short SyncToErp
Field Value
Type Description
Int16

Updated

Last updated when in UTC.

Declaration
public DateTime Updated
Field Value
Type Description
DateTime

UpdatedAssociateId

Last updated by whom

Declaration
public int UpdatedAssociateId
Field Value
Type Description
Int32

UpdatedCount

Number of updates made to this record

Declaration
public short UpdatedCount
Field Value
Type Description
Int16

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
ErpFieldRecordDataExtensions.ToInsert(ErpFieldRecordData)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top