ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 5080 "To-do" - InsertTaskAndRelatedData

Open MrinalSingha opened this issue 4 years ago • 1 comments

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;

MrinalSingha avatar Jul 22 '22 04:07 MrinalSingha

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: .

JesperSchulz avatar Jul 25 '22 14:07 JesperSchulz