DynamicFieldRemove#
NAME#
Kernel::System::ProcessManagement::TransitionAction::DynamicFieldRemove - A module to remove a dynamic field value
DESCRIPTION#
All DynamicFieldRemove functions.
PUBLIC INTERFACE#
new()#
Don’t use the constructor directly, use the ObjectManager instead:
my $DynamicFieldRemoveObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionAction::DynamicFieldRemove');
Run()#
Runs TransitionAction DynamicFieldRemove.
my $Success = $DynamicFieldRemoveActionObject->Run(
UserID => 123,
# Ticket contains the result of TicketGet including dynamic fields
Ticket => \%Ticket, # required
ProcessEntityID => 'P123',
ActivityEntityID => 'A123',
TransitionEntityID => 'T123',
TransitionActionEntityID => 'TA123',
# Config is the hash stored in a Process::TransitionAction's config key
Config => {
FieldName => 1, # required, name of field to be deleted without
# DynamicField_ decorator.
UserID => 123, # optional, to override the logged in user.
# Fields with the name UserID cannot be deleted.
}
);
If a dynamic field is named UserID (to avoid conflicts) it must be set in the config as:
DynamicField_UserID => $Value,
Returns:
my $Success = 1; # 0