ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 5051 SegManagement - OnBeforeCopyFromSegmentAfterRetrieveInteractionLogEntry
Hello,
We would like to request the following event in the LogInteraction procedure of the Codeunit 5051 SegManagement.
if SegmentLine."Line No." = 0 then begin
NextInteractLogEntryNo := GetNextInteractionLogEntryNo;
InteractLogEntry.Init();
InteractLogEntry."Entry No." := NextInteractLogEntryNo;
InteractLogEntry.CopyFromSegment(SegmentLine);
InteractLogEntry.Postponed := Postponed;
OnLogInteractionOnBeforeInteractionLogEntryInsert(InteractLogEntry);
InteractLogEntry.Insert();
end else begin
InteractLogEntry.Get(SegmentLine."Line No.");
OnBeforeCopyFromSegmentAfterRetrieveInteractionLogEntry(InteractLogEntry, Postponed);
InteractLogEntry.CopyFromSegment(SegmentLine);
InteractLogEntry.Postponed := Postponed;
OnLogInteractionOnBeforeInteractionLogEntryModify(InteractLogEntry);
InteractLogEntry.Modify();
InterLogEntryCommentLine.SetRange("Entry No.", InteractLogEntry."Entry No.");
InterLogEntryCommentLine.DeleteAll();
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyFromSegmentAfterRetrieveInteractionLogEntry(InteractionLogEntry: Record "Interaction Log Entry; Postponed: Boolean)
begin
end;
In our solution there are situations in which some fields have to be modified based on InteractionLogEntry.Postponed and Rec.Postponed.
Thank you in advance for your consideration.
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.