Set Computed Value in the dynamic field

English! place to talk about development, programming and coding
Post Reply
GMunjal
Znuny advanced
Posts: 108
Joined: 23 Oct 2013, 09:17
Znuny Version: 3.3.0 beta 2
Real Name: Gaurav Munjal
Company: Nagarro

Set Computed Value in the dynamic field

Post by GMunjal »

Hi,

I want to store a variable's value in a dynamic field in a perl module. How is this possible?
e.g.
value is stored in variable : $test and I have to put this into Dynamic field.
my $Success = $Self->{BackendObject}->ValueSet(
DynamicFieldConfig => $DynamicFieldConfig,
ObjectID => $Param{Data}->{TicketID},
Value => ,
);
mabu
Znuny newbie
Posts: 3
Joined: 05 Dec 2013, 12:18
Znuny Version: Version 3.3

Re: Set Computed Value in the dynamic field

Post by mabu »

Hello,

try to use:

Code: Select all

my $Success = $BackendObject->ValueSet(
    DynamicFieldConfig => $DynamicFieldConfig,
    ObjectID                 => $ObjectID,
    Value                      => $test,
    UserID                    => $Self->{UserID}, # $Self->{UserID} to use the current login user id or 1 to use root
);
Cheers, Marco
Post Reply