Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ codeunit 5352 "CRM Order Status Update Job"
begin
IntegrationTableMapping.SetRange(Type, IntegrationTableMapping.Type::Dataverse);
IntegrationTableMapping.SetRange("Table ID", DATABASE::"Sales Header");
OnUpdateSalesOrdersOnBeforeFindIntegrationTableMapping(IntegrationTableMapping);
if IntegrationTableMapping.FindFirst() then
IntegrationTableSynch.BeginIntegrationSynchJob(TABLECONNECTIONTYPE::CRM, IntegrationTableMapping, DATABASE::"Sales Header")
else
Expand Down Expand Up @@ -258,5 +259,10 @@ codeunit 5352 "CRM Order Status Update Job"
if CRMPostBuffer.Get(TempCRMPostBuffer.ID) then
CRMPostBuffer.Delete();
end;

[IntegrationEvent(false, false)]
local procedure OnUpdateSalesOrdersOnBeforeFindIntegrationTableMapping(var IntegrationTableMapping: Record "Integration Table Mapping")
begin
end;
}

Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,7 @@ codeunit 5330 "CRM Integration Management"
exit;
end;

OnRemoveCouplingOnBeforeGetIntegrationTableMappingForUncoupling(IntegrationTableMapping, LocalRecordRef);
if GetIntegrationTableMappingForUncoupling(IntegrationTableMapping, LocalRecordRef.Number()) then
if Schedule then
ScheduleUncoupling(IntegrationTableMapping, IntegrationRecordSynch.GetTableViewForLocalRecords(LocalRecordRef), '')
Expand Down Expand Up @@ -1340,6 +1341,7 @@ codeunit 5330 "CRM Integration Management"
exit;
end;

OnMatchBasedCouplingOnBeforeGetIntegrationTableMappingForMatchBasedCoupling(IntegrationTableMapping, LocalRecordRef);
if GetIntegrationTableMappingForCoupling(IntegrationTableMapping, LocalRecordRef.Number()) then begin
IntegrationFieldMapping.SetMatchBasedCouplingFilters(IntegrationTableMapping);
if Page.RunModal(Page::"Match Based Coupling Criteria", IntegrationFieldMapping) = Action::LookupOK then
Expand Down Expand Up @@ -4257,4 +4259,14 @@ codeunit 5330 "CRM Integration Management"
local procedure OnBeforeRescheduleJobQueueEntries(TableNo: Integer; var RescheduleOffSetInMs: Integer)
begin
end;

[IntegrationEvent(false, false)]
local procedure OnRemoveCouplingOnBeforeGetIntegrationTableMappingForUncoupling(var IntegrationTableMapping: Record "Integration Table Mapping"; LocalRecordRef: RecordRef)
Comment thread
onbuyuka marked this conversation as resolved.
begin
end;

[IntegrationEvent(false, false)]
local procedure OnMatchBasedCouplingOnBeforeGetIntegrationTableMappingForMatchBasedCoupling(var IntegrationTableMapping: Record "Integration Table Mapping"; LocalRecordRef: RecordRef)
Comment thread
onbuyuka marked this conversation as resolved.
begin
end;
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ table 5332 "Coupling Record Buffer"
"Saved CRM Option Id" := "CRM Option Id";
end;
end;

OnAfterInitialize(Rec);
end;

procedure Initialize(NAVRecordID: RecordID)
Expand Down Expand Up @@ -426,5 +428,10 @@ table 5332 "Coupling Record Buffer"
local procedure OnFindCRMOptionByName(CRMTableID: Integer; var EntityName: Text; var FieldName: Text; var Handled: Boolean)
begin
end;

[IntegrationEvent(false, false)]
local procedure OnAfterInitialize(var CouplingRecordBuffer: Record "Coupling Record Buffer")
begin
end;
}

Loading