Describe the issue
Event OnAfterLogSynchError raises with a wrong variable.
procedure LogSynchError(IntegrationSynchJobId: Guid; SourceRecordId: RecordID; DestinationRecordId: RecordID; ErrorMessage: Text)
var
IntegrationSynchJobErrors: Record "Integration Synch. Job Errors";
StackTraceOutStream: OutStream;
begin
IntegrationSynchJobErrors.Init();
IntegrationSynchJobErrors."Integration Synch. Job ID" := IntegrationSynchJobId;
IntegrationSynchJobErrors."Source Record ID" := SourceRecordId;
IntegrationSynchJobErrors."Destination Record ID" := DestinationRecordId;
IntegrationSynchJobErrors."Date/Time" := CurrentDateTime;
IntegrationSynchJobErrors.Message := CopyStr(ErrorMessage, 1, MaxStrLen(IntegrationSynchJobErrors.Message));
IntegrationSynchJobErrors."Error Message" := CopyStr(ErrorMessage, 1, MaxStrLen(IntegrationSynchJobErrors."Error Message"));
IntegrationSynchJobErrors."Exception Detail".CreateOutStream(StackTraceOutStream);
StackTraceOutStream.Write(GetLastErrorCallstack);
IntegrationSynchJobErrors.Insert(true);
OnAfterLogSynchError(Rec);
end;
Expected behavior
Event OnAfterLogSynchError should raise with IntegrationSynchJobErrors instead of Rec
Steps to reproduce
see code
Additional context
No response
I will provide a fix for a bug
Describe the issue
Event OnAfterLogSynchError raises with a wrong variable.
Expected behavior
Event OnAfterLogSynchError should raise with IntegrationSynchJobErrors instead of Rec
Steps to reproduce
see code
Additional context
No response
I will provide a fix for a bug