Share via


Table "CRM Option Mapping"

ID 5334
Namespace: Microsoft.Integration.Dataverse

Properties

Name Value
Caption CRM Option Mapping
DataClassification CustomerContent

Fields

Name Type Description
"Record ID" RecordId
"Option Value" Integer
"Table ID" Integer
"Integration Table ID" Integer
"Integration Field ID" Integer
"Option Value Caption" Text[250]
"Last Synch. Result" Option
Skipped Boolean
"Last Synch. Job ID" Guid
"Last Synch. CRM Result" Option
"Last Synch. CRM Job ID" Guid
"Last Synch. Modified On" DateTime
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

FindRecordID

procedure FindRecordID(IntegrationTableID: Integer, IntegrationFieldID: Integer, OptionValue: Integer): Boolean

Parameters

Name Type Description
IntegrationTableID Integer
IntegrationFieldID Integer
OptionValue Integer

Returns

Type Description
Boolean

GetRecordKeyValue

procedure GetRecordKeyValue(): Text

Returns

Type Description
Text

AssertCRMOptionIdCanBeMapped

procedure AssertCRMOptionIdCanBeMapped(NAVRecordID: RecordId, CRMOptionId: Integer)

Parameters

Name Type Description
NAVRecordID RecordId
CRMOptionId Integer

InsertRecord

procedure InsertRecord(NAVRecordID: RecordId, CRMOptionId: Integer, CRMOptionValue: Text[250]): Boolean

Parameters

Name Type Description
NAVRecordID RecordId
CRMOptionId Integer
CRMOptionValue Text[250]

Returns

Type Description
Boolean

IsCRMRecordRefMapped

procedure IsCRMRecordRefMapped(CRMRecordRef: RecordRef, var CRMOptionMapping: Record "CRM Option Mapping"): Boolean

Parameters

Name Type Description
CRMRecordRef RecordRef
CRMOptionMapping Table Microsoft.Integration.Dataverse."CRM Option Mapping"

Returns

Type Description
Boolean

IsOptionMappingSkipped

procedure IsOptionMappingSkipped(RecRef: RecordRef, DirectionToIntTable: Boolean): Boolean

Parameters

Name Type Description
RecRef RecordRef
DirectionToIntTable Boolean

Returns

Type Description
Boolean

MarkLastSynchAsFailure

procedure MarkLastSynchAsFailure(SourceRecRef: RecordRef, DirectionToIntTable: Boolean, JobId: Guid, var MarkedAsSkipped: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
DirectionToIntTable Boolean
JobId Guid
MarkedAsSkipped Boolean

UpdateOptionMapping

procedure UpdateOptionMapping(IntegrationTableMapping: Record "Integration Table Mapping", SourceRecordRef: RecordRef, DestinationRecordRef: RecordRef, JobId: Guid)

Parameters

Name Type Description
IntegrationTableMapping Table Microsoft.Integration.SyncEngine."Integration Table Mapping"
SourceRecordRef RecordRef
DestinationRecordRef RecordRef
JobId Guid

GetRecordRefOptionId

procedure GetRecordRefOptionId(RecRef: RecordRef): Integer

Parameters

Name Type Description
RecRef RecordRef

Returns

Type Description
Integer

GetRecordRefOptionValue

procedure GetRecordRefOptionValue(RecRef: RecordRef): Text[250]

Parameters

Name Type Description
RecRef RecordRef

Returns

Type Description
Text[250]

GetLatestJobIDFilter

procedure GetLatestJobIDFilter(): Text

Returns

Type Description
Text

GetLatestError

procedure GetLatestError(var IntegrationSynchJobErrors: Record "Integration Synch. Job Errors"): Boolean

Parameters

Name Type Description
IntegrationSynchJobErrors Table Microsoft.Integration.SyncEngine."Integration Synch. Job Errors"

Returns

Type Description
Boolean

Events

OnIsCRMRecordRefMapped

[IntegrationEvent(False,False)]
local procedure OnIsCRMRecordRefMapped(CRMRecordRef: RecordRef, var CRMOptionMapping: Record "CRM Option Mapping", var Handled: Boolean)

Parameters

Name Type Description
CRMRecordRef RecordRef
CRMOptionMapping Table Microsoft.Integration.Dataverse."CRM Option Mapping"
Handled Boolean

OnGetMetadataInfo

[IntegrationEvent(False,False)]
local procedure OnGetMetadataInfo(CRMRecordRef: RecordRef, var EntityName: Text, var FieldName: Text)

Parameters

Name Type Description
CRMRecordRef RecordRef
EntityName Text
FieldName Text

See also