Why do you need this change?
There is currently no way for extensions to suppress the confirmation dialog ("Do you want to create a service item?") that appears when CreateServItemOnServItemLine is called. This blocks automated/background scenarios where the dialog must not be shown.
Describe the request
Before:
if not ConfirmManagement.GetResponseOrDefault(StrSubstNo(Text000), true) then
exit;
After:
IsHandled := false;
OnBeforeConfirmCreateServItem(ServItemLine, IsHandled);
if not IsHandled then
if not ConfirmManagement.GetResponseOrDefault(StrSubstNo(Text000), true) then
exit;
[IntegrationEvent(false, false)]
local procedure OnBeforeConfirmCreateServItem(var ServItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;

Why do you need this change?
There is currently no way for extensions to suppress the confirmation dialog ("Do you want to create a service item?") that appears when CreateServItemOnServItemLine is called. This blocks automated/background scenarios where the dialog must not be shown.
Describe the request
Before:
if not ConfirmManagement.GetResponseOrDefault(StrSubstNo(Text000), true) then
exit;
After:
IsHandled := false;
OnBeforeConfirmCreateServItem(ServItemLine, IsHandled);
if not IsHandled then
if not ConfirmManagement.GetResponseOrDefault(StrSubstNo(Text000), true) then
exit;
[IntegrationEvent(false, false)]
local procedure OnBeforeConfirmCreateServItem(var ServItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;