Skip to content

[W1] [Event Request] table 5050 Contact - OnBeforeCreatePurchaseQuoteFromContact #29780

@pri-kise

Description

@pri-kise

Why do you need this change?

We would like to perform additional checks on the contact before the new document is created from the contact.

Describe the request

    procedure CreatePurchaseQuoteFromContact()
    var
        PurchaseHeader: Record "Purchase Header";
    begin
        //>>EVENT
        OnBeforeCreatePurchaseQuoteFromContact(Rec);
        //<<EVENT
        CheckIfPrivacyBlockedGeneric();

        PurchaseHeader.Init();
        PurchaseHeader.Validate("Document Type", PurchaseHeader."Document Type"::Quote);
        PurchaseHeader.Insert(true);
        PurchaseHeader.Validate("Document Date", WorkDate());
        PurchaseHeader.Validate("Buy-from Contact No.", "No.");
        PurchaseHeader.Modify();

        Page.Run(Page::"Purchase Quote", PurchaseHeader);
    end;
[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseQuoteFromContact(var Contact: Record Contact)
begin
end;

Internal work item: AB#623958

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions