Code: Select all
makeSoapCallArray(array("DynamicFieldValueObject", "ValueSet",
"FieldID" , 15,
"ObjectID" , $ticketID,
"Value" , 'Ja',
"UserID" , 12)
);
How can I Set The Dynamic Field Value?
Moderator: crythias
Code: Select all
makeSoapCallArray(array("DynamicFieldValueObject", "ValueSet",
"FieldID" , 15,
"ObjectID" , $ticketID,
"Value" , 'Ja',
"UserID" , 12)
);
eparlin wrote:SOLVED: This patch works great. If you are dependent on 'DynamicFieldValueObject' because you've already used it in code since its called in the API just use it instead of 'TicketDynamicObject' when updating your rpc.pl file. If you use this patch verbatim, just remember to change your calling code to 'TicketDynamicObject->ValueSet()'. I have tested both ways and works just fine. I'm not sure if this is already fixed in 3.2.X or not, but I am testing on 3.1.12.
Code: Select all
$result = $this->__soapCall("Dispatch", array($this->_wsconf['username'], $this->_wsconf['password'],
"DynamicFieldValueObject", "ValueSet",
"FieldID", $fieldId,
"ObjectID", $ticketId,
"Value", array(
"0" => array(
"ValueText" => $value
)
) ,
"UserID", 1
));