Update Ticket DynamicField value by way of SOAP::Lite

Moderator: crythias

Locked
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Update Ticket DynamicField value by way of SOAP::Lite

Post by pazt »

hi,

I'm trying update a Ticket DynamicField by way of SOAP::Lite perl script, but no success.

This is my current script:

Code: Select all

use SOAP::Lite('autodispatch', proxy => "http://xxx.xxx.x.x/otrs/rpc.pl");
my $rpc_connect = Core->new();
my %Ticket = $rpc_connect->Dispatch( $soap_user, $soap_password, 'TicketObject', 'DynamicFieldSet',
	
UserID => 1,
TicketID => 34,
DynamicField_city  => 'New York');
By the way, it's exactly like my TicketQueueSet script. And TicketQueueSet script works:

Code: Select all

use SOAP::Lite('autodispatch', proxy => "http://xxx.xxx.x.x/otrs/rpc.pl");
my $rpc_connect = Core->new();
my %Ticket = $rpc_connect->Dispatch( $soap_user, $soap_password, 'TicketObject', 'TicketQueueSet',
        
UserID   => 1,
TicketID => 34,
QueueID  => 9);
How can I update my Ticket DynamicFields?

Thanks
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
pazt
Znuny newbie
Posts: 18
Joined: 06 Mar 2016, 21:06
Znuny Version: 5.0.22
Real Name: Thiago Paz
Company: Landis+Gyr

Re: Update Ticket DynamicField value by way of SOAP::Lite

Post by pazt »

Anyone?
PazT

OTRS 5.0.22 | ITSM 5.0.22 | Ubuntu 16.04 LTS | MySQL 5.7
Locked