Codeunit 5340 CRM Integration Table Synch.

Base Application, Microsoft.Integration.Dataverse

src/Layers/W1/BaseApp/Integration/Dataverse/CRMIntegrationTableSynch.Codeunit.al39 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 20, trigger

  1. 30raisesOnBeforeRunIsHandled
  2. 34callsInitConnection
  3. 35callsTestConnection
  4. 38callsSynchOption
  5. 42callsPerformScheduledSynchToIntegrationTable
  6. 44callsPerformScheduledSynchFromIntegrationTable
  7. 49callsLocalUpdateTableMappingModifiedOn
  8. 54callsCloseConnection

InitConnection line 79, internal

  1. 85callsCodeunit 5330 CRM Integration Management OnInitCDSConnection
  2. 91callsCodeunit 5344 CRM Product Name FULL
  3. 95callsTable 5330 CRM Connection Setup RegisterConnectionWithName
  4. 96callsClearCache

GetIntegrationUserId line 99, local

  1. 106callsCodeunit 5330 CRM Integration Management OnGetCDSIntegrationUserId
  2. 110callsTable 5330 CRM Connection Setup GetIntegrationUserID

TestConnection line 113, internal

  1. 119callsCodeunit 5330 CRM Integration Management OnTestCDSConnection
  2. 121callsTable 5330 CRM Connection Setup TryReadSystemUsers

CloseConnection line 125, internal

  1. 131callsClearCache
  2. 133callsCodeunit 5330 CRM Integration Management OnCloseCDSConnection
  3. 137callsTable 5330 CRM Connection Setup UnregisterConnectionWithName

ClearCache line 140, local

  1. 143callsCodeunit 5341 CRM Int. Table. Subscriber ClearCache

IsModifiedByFilterNeeded line 147, local

  1. 152raisesOnIsModifiedByFilterNeededIsHandled
  2. 160callsHasUnidirectionalFieldMappingFromIntegrationTable

FindModifiedCRMRecords line 164, local

  1. 173callsIsModifiedByFilterNeeded
  2. 174callsCodeunit 5336 Integration Record Synch. SplitIntegrationTableFilter
  3. 177callsSetIntRecordRefFilter
  4. 182callsTryCopyRecordReference

TryCopyRecordReference line 190, local

  1. 192callsCopyRecordReference

CopyRecordReference line 195, local

  1. 213callsIsFieldMapped
  2. 215callsCodeunit 4100 Temp Blob FromFieldRef
  3. 216callsCodeunit 4100 Temp Blob ToFieldRef

SetIntRecordRefFilter line 241, local

  1. 256callsGetModifyByFieldNo
  2. 260callsGetIntegrationUserId

FindFailedNotSkippedCRMRecords line 264, local

  1. 273callsTable 5335 Integration Table Mapping GetIntegrationTableFilter
  2. 289callsCodeunit 5336 Integration Record Synch. GetIdFilterList
  3. 290callsCacheFilteredCRMRecords

CacheFilteredCRMRecords line 298, local

  1. 310callsCopyRecordReference

CacheFilteredCRMTable line 318, local

  1. 323callsFindFailedNotSkippedCRMRecords
  2. 324callsFindModifiedCRMRecords

GetSourceRecordRef line 343, local

  1. 348callsGetSourceType
  2. 358callsTable 5335 Integration Table Mapping FindFilteredRec
  3. 365callsTable 5335 Integration Table Mapping GetRecordRef
  4. 366callsTable 5335 Integration Table Mapping GetExtendedIntegrationTableCaption
  5. 367callsTable 5335 Integration Table Mapping FindFilteredRec

FindFailedNotSkippedLocalRecords line 383, local

  1. 391callsTable 5335 Integration Table Mapping GetTableFilter

FindFailedNotSkippedLocalRecords line 421, local

  1. 430callsTable 5335 Integration Table Mapping GetTableFilter

SynchOption line 463

  1. 467callsCodeunit 10 Type Helper GetField
  2. 471callsSynchOptions

SynchRecord line 474

  1. 480callsGetSourceRecordRef
  2. 481callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJob
  3. 483callsCodeunit 5335 Integration Table Synch. Synchronize
  4. 484callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJob

SynchRecordsToIntegrationTable line 489

  1. 496raisesOnBeforeSynchRecordsToIntegrationTableIsHandled
  2. 500callsTable 5335 Integration Table Mapping FindMappingForTable
  3. 508callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJob
  4. 512callsCodeunit 5335 Integration Table Synch. Synchronize
  5. 514callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJob

SynchRecordsFromIntegrationTable line 518

  1. 525raisesOnBeforeSynchRecordsFromIntegrationTableIsHandled
  2. 529callsTable 5335 Integration Table Mapping FindMapping
  3. 537callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJob
  4. 541callsCodeunit 5335 Integration Table Synch. Synchronize
  5. 543callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJob

SynchNAVTableToCRM line 547, local

  1. 560callsCodeunit 5336 Integration Record Synch. SplitLocalTableFilter
  2. 561callsCreateCRMIntegrationRecordClone
  3. 564callsFindFailedNotSkippedLocalRecords
  4. 567callsSyncNAVRecordToCRM
  5. 570callsCodeunit 5336 Integration Record Synch. FindModifiedLocalRecords
  6. 574callsSyncNAVRecordToCRM
  7. 577raisesOnSynchNAVTableToCRMOnBeforeCheckLatestModifiedOn

SyncNAVRecordToCRM line 582

  1. 592raisesOnQueryPostFilterIgnoreRecord
  2. 595callsTable 5331 CRM Integration Record IsIntegrationIdCoupled
  3. 598callsCodeunit 5335 Integration Table Synch. Synchronize
  4. 601callsCodeunit 5335 Integration Table Synch. GetRowLastModifiedOn

SynchCRMTableToNAV line 606, local

  1. 618callsCreateCRMIntegrationRecordClone
  2. 619callsCacheFilteredCRMTable
  3. 624callsCopyRecordReference
  4. 626raisesOnQueryPostFilterIgnoreRecord
  5. 628callsTable 5331 CRM Integration Record IsCRMRecordRefCoupled
  6. 629writesTable 5331 CRM Integration Record Delete
  7. 633callsCodeunit 5335 Integration Table Synch. Synchronize
  8. 636callsCodeunit 5335 Integration Table Synch. GetRowLastModifiedOn

PerformScheduledSynchToIntegrationTable line 654, local

  1. 663callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJob
  2. 666callsTable 5373 CRM Full Synch. Review Line FullSynchStarted
  3. 667callsSynchNAVTableToCRM
  4. 668callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJob
  5. 669callsTable 5373 CRM Full Synch. Review Line FullSynchFinished

PerformScheduledSynchFromIntegrationTable line 675, local

  1. 685callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJob
  2. 688callsTable 5373 CRM Full Synch. Review Line FullSynchStarted
  3. 689callsSynchCRMTableToNAV
  4. 690callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJob
  5. 691callsTable 5373 CRM Full Synch. Review Line FullSynchFinished

LocalUpdateTableMappingModifiedOn line 697, local

  1. 702raisesOnBeforeUpdateTableMappingModifiedOnIsHandled
  2. 706callsTable 5335 Integration Table Mapping UpdateTableMappingModifiedOn

CreateCRMIntegrationRecordClone line 709, internal

  1. 715writesTable 5331 CRM Integration Record DeleteAll
  2. 717callsCodeunit 5330 CRM Integration Management RepairBrokenCouplings
  3. 724writesTable 5331 CRM Integration Record Insert

SynchOptions line 728, local

  1. 734callsTable 5335 Integration Table Mapping SetOriginalJobQueueEntryOnHold
  2. 738callsPerformScheduledOptionSynchToIntegrationTable
  3. 740callsPerformScheduledOptionSynchFromIntegrationTable
  4. 741callsLocalUpdateTableMappingModifiedOn
  5. 742callsTable 5335 Integration Table Mapping SetOriginalJobQueueEntryStatus

PerformScheduledOptionSynchFromIntegrationTable line 745, local

  1. 754callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJob
  2. 757callsTable 5373 CRM Full Synch. Review Line FullSynchStarted
  3. 758callsSynchCRMOptionToNAV
  4. 759callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJob
  5. 760callsTable 5373 CRM Full Synch. Review Line FullSynchFinished

PerformScheduledOptionSynchToIntegrationTable line 766, local

  1. 775callsCodeunit 5335 Integration Table Synch. BeginIntegrationSynchJob
  2. 778callsTable 5373 CRM Full Synch. Review Line FullSynchStarted
  3. 779callsSynchCRMOptionFromNAV
  4. 780callsCodeunit 5335 Integration Table Synch. EndIntegrationSynchJob
  5. 781callsTable 5373 CRM Full Synch. Review Line FullSynchFinished

CacheFilteredCRMOptions line 787, local

  1. 798callsLoadCRMOption
  2. 800callsTable 5335 Integration Table Mapping GetIntegrationTableFilter

LoadCRMOption line 820

  1. 829callsTable 7203 CRM Payment Terms Load
  2. 834callsTable 7204 CRM Freight Terms Load
  3. 839callsTable 7205 CRM Shipping Method Load
  4. 843raisesOnLoadCRMOption

SynchCRMOptionToNAV line 846, local

  1. 855callsCacheFilteredCRMOptions
  2. 860callsTable 5334 CRM Option Mapping IsCRMRecordRefMapped
  3. 864callsCodeunit 5335 Integration Table Synch. SynchronizeOption

SynchCRMOptionFromNAV line 870, local

  1. 881callsCodeunit 5336 Integration Record Synch. SplitLocalTableFilter
  2. 884callsFindFailedNotSkippedLocalRecords
  3. 887callsSyncNAVOptionToCRM
  4. 890callsCodeunit 5336 Integration Record Synch. FindModifiedLocalRecords
  5. 894callsSyncNAVOptionToCRM

SyncNAVOptionToCRM line 900, local

  1. 915callsCodeunit 5335 Integration Table Synch. SynchronizeOption
  2. 918callsCodeunit 5335 Integration Table Synch. GetRowLastModifiedOn

GetMaxNumberOfConditions line 924

  1. 930raisesOnGetMaxNumberOfConditions
  2. 932callsCodeunit 5336 Integration Record Synch. GetMaxNumberOfConditions

IgnoreCompanyContactOnQueryPostFilterIgnoreRecord line 981, local

  1. 990callsCodeunit 5342 CRM Synch. Helper IsContactTypeCheckIgnored

OnBeforeModifyJobQueueEntry line 999, local

  1. 1006callsTable 5373 CRM Full Synch. Review Line OnBeforeModifyJobQueueEntry