-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
Why do you need this change?
In 4PS Construct we need to be able to create a customer based on a contact when there is no customer template at all.
Describe the request
Dear ALAppExtensions team,
On behalf of 4PS I would like to request integration event 'OnBeforeCreateCustomer' to be added to procedure CreateCustomer in table 5050 Contact.
//procedure CreateCustomer(): Code[20]; // old
procedure CreateCustomer() CustomerNo: Code[20]; // new
var
CustomerTempl: Record "Customer Templ.";
CustomerTemplMgt: Codeunit "Customer Templ. Mgt.";
IsHandled: Boolean; //new
begin
OnBeforeCreateCustomer(Rec, CustomerNo, IsHandled); //new
if IsHandled then //new
exit; //new
if CustomerTemplMgt.SelectCustomerTemplateFromContact(CustomerTempl, Rec) then
exit(CreateCustomerFromTemplate(CustomerTempl.Code))
else
if CustomerTemplMgt.TemplatesAreNotEmpty() then
exit;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateCustomer(var Contact: Record Contact; var CustomerNo: Code[20]; var IsHandled: Boolean)
begin
//new
end;
Internal work item: AB#612784
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update