Quantcast
Channel: Znuny Open Source Ticketsystem
Viewing all articles
Browse latest Browse all 300

Trying to read dynamic field value of a ticket

$
0
0
Hi together,

i´m getting the ticketID of the actual created ticket by

Code:

my ($Self, %Param) = @_;my $TicketID = $Param{Data}->{TicketID};
then i get the ticketconfig with:

Code:

my $DynamicFieldName = 'test';my $DynamicFieldConfig1 = $Self->{DynamicFieldObject}->DynamicFieldGet(       Name => $DynamicFieldName,     );    
then i want to get the dynamicfield value by:

Code:

my $DynamicFieldValue = $Self->{BackendObject}->ValueGet(    DynamicFieldConfig => $DynamicFieldConfig1,        ObjectID => $TicketID,           );        
but $DynamicFieldValue is empty. If i hardcode the ID it works, like:

Code:

my $DynamicFieldValue = $Self->{BackendObject}->ValueGet(    DynamicFieldConfig => $DynamicFieldConfig1,        ObjectID => 123,           );
does anyone have a clue what i´m doing wrong?
i checked the value of $TickedID before and after and it´s correct.

thank you very much for your help
Philipp

Statistics: Posted by Philippdergro — 19 Sep 2024, 14:59 — Replies 1 — Views 99



Viewing all articles
Browse latest Browse all 300

Trending Articles