DynamicFieldSet#
NAME#
Kernel::System::ProcessManagement::TransitionAction::DynamicFieldSet - A module to set ticket dynamic field values
DESCRIPTION#
All DynamicFieldSet functions.
PUBLIC INTERFACE#
new()#
Don’t use the constructor directly, use the ObjectManager instead:
my $DynamicFieldSetObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionAction::DynamicFieldSet');
Run()#
Runs TransitionAction DynamicFieldSet
my $Success = $DynamicFieldSetActionObject->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 => {
MasterSlave => 'Master',
Approved => '1',
UserID => 123, # optional, to override the UserID from the logged user
}
);
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