ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5080 "To-do" - InsertTaskAndRelatedData
Hi microsoft/ALAppExtensions,
can you please add new event on the function
local procedure InsertTaskAndRelatedData()
if not CommentLineInserted then
CreateCommentLines(RMCommentLine, Task2."No.");
OnAfterInsertTaskAndRelatedData(Task); //New Event
end;
[IntegrationEvent(false, false)]
local procedure OnAfterInsertTaskAndRelatedData(var Task: Record "To-do")
begin
end;
which can be used to modify "Interaction Log Entry" table.
[EventSubscriber(ObjectType::Table, Database::"To-do", 'OnAfterInsertTaskAndRelatedData', '', false, false)]
local procedure OnAfterInsertTaskAndRelatedData(var Task: Record "To-do")
var
InteractionLogEntry: Record "Interaction Log Entry"
begin
if Task."Interaction Log Entry No." <> 0 then begin
InteractionLogEntry.Get(Task."Interaction Log Entry No.");
InteractionLogEntry."To-do No." := Task."No.";
InteractionLogEntry.Modify();
end;
end;
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.
Build ID: