I need to create a call and populate a dynamic field, I'm trying with the code below, the call is created, but the dynamic field is still empty.
I already tried value as string and I did not succeed.
I am using OTRS 5.0.16
Code: Select all
$TicketID = $soap->__soapCall(
"Dispatch", array(
$username, $password,
"TicketObject", "TicketCreate",
"Title", $Title, //Opcional @texto
"TypeID", $TypeID, //Requerido @inteiro
"QueueID", $QueueID, //Requerido @inteiro
"LockID", $LockID, //Requerido @inteiro
"PriorityID", $PriorityID, //Requerido @inteiro
"State", $State, //Requerido @texto
"CustomerUser", $CustomerUser, //Requerido @texto (nome de cliente)
"CustomerID", $CustomerID, //Requerido @texto (email do cliente)
"OwnerID", $OwnerID, //Requerido @inteiro
"ResponsibleID", $OwnerID,
"UserID", $UserID, //Requerido @inteiro (id do usuário root)
"ServiceID", $ServiceID,
"SLAID", $SLAID,
"DynamicField" => array(
"Name" => "Departamento",
"Value" => 10,
)
)
);
Can someone help me?