Skip to content

[Event Request] - Codeunit 5920 ServItemManagement - Add integration event to skip service item creation confirmation dialog #30192

@auzscr

Description

@auzscr

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.

Image

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;

Image

[IntegrationEvent(false, false)]
local procedure OnBeforeConfirmCreateServItem(var ServItemLine: Record "Service Item Line"; var IsHandled: Boolean)
begin
end;

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions