ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 5771 - OnAfterCheckCreateWhseRequest

Open makuhn opened this issue 7 years ago • 3 comments

Add new integration event OnAfterCheckCreateWhseRequest in Codeunit 5771.

Function Release:

            IF First OR (SalesLine."Location Code" <> OldLocationCode) OR (WhseType <> OldWhseType) THEN
              CreateWhseRqst(SalesHeader,SalesLine,WhseType);

+           OnAfterCheckCreateWhseRequest(SalesHeader, SalesLine, WhseType);

            First := FALSE;
            OldLocationCode := SalesLine."Location Code";

New publisher function:

    [Integration]
    LOCAL PROCEDURE OnAfterCheckCreateWhseRequest@100000000(SalesHeader@100000002 : Record 36;VAR SalesLine@100000001 : Record 37;WhseType@100000000 : 'Inbound,Outbound');
    BEGIN
    END;

makuhn avatar Dec 27 '18 16:12 makuhn

Hi AL-Team, sorry to revive this issue, but we would need the above publisher to be extended with additional parameters and "SalesHeader" as VAR, to perform additional checks and edit module tables:

LOCAL [IntegrationEvent] OnAfterCheckCreateWhseRequest(VAR SalesHeader : Record "Sales Header";VAR SalesLine : Record "Sales Line";WhseType : 'Inbound,Outbound';First : Boolean;OldWhseType : 'Inbound,Outbound';OldLocationCode : Code[10])

cosmo-skol avatar Mar 22 '19 13:03 cosmo-skol

@jobulsin This event is still missing in the Business Central Insider. Wrong label?

NKarolak avatar Mar 22 '19 13:03 NKarolak

Still not available in BC 15.

NKarolak avatar Aug 01 '19 11:08 NKarolak