I have tried in various ways but nothing works.
In prepareRequest method:
Code: Select all
my %Ticket = $TicketObject->TicketGet(
        TicketID     => $Param{Data}->{TicketID},
        Type         => $Param{Data}->{Type},
        TicketNumber => $Param{Data}->{TicketNumber},
        Title        => $Param{Data}->{Title},
        Queue        => $Param{Data}->{Queue},        
        State        => $Param{Data}->{State},
        OwnerID      => $Param{Data}->{OwnerID},
        Priority     => $Param{Data}->{Priority},
    );
	
	#I tried with:
	
	my $message= $Param{Data}->{Title};
        my $message= $Ticket{Title};
        
        #but not works.
	return {
			Success => 1,
			Data => {
						%Ticket,
					}
			};I need to return the title separately from the TicketObject object.
I need to set it to another variable to generate a message.
Could someone guide me?
Many thanks
Cheers