microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
768 stars 610 forks source link

[Event Request] Table 5050 - Contact - TouchContact #26951

Closed JanineBluemelGOB closed 1 month ago

JanineBluemelGOB commented 1 month ago

Describe the request

Hello, Please add an event in table 5050 for the function "TouchContact".

The event should call "OnBeforeTouchContact". I marked the new Code in the code below with //Start New Code and //End New Code.

procedure TouchContact(ContactNo: Code[20]) var Cont: Record Contact; IsHandled: Boolean; //New Code begin //Start New Code OnBeforeTouchContact(Rec, IsHandled); if IsHandeled then exit; //End New Code

    Cont.LockTable();
    if Cont.Get(ContactNo) then begin
        Cont.SetLastDateTimeModified();
        Cont.Modify();
    end;
end;

Additional context

Skip the modification of the Contact. Internal work item: AB#543558

azure-boards[bot] commented 1 month ago

✅ Successfully linked to Azure Boards work item(s):

AleksandricMarko commented 1 month ago

Already implemented image