function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RYakerRYaker 

Since last week: DateTime field type problem

NOW: 2005-08-09T15:29:15.000+08.00


As of last week this worked now my Create of a new object instance in Salesforce FAILS because of an "value not of required type" error occuring on a date type field.


This is the formated date I am attempting to input htat gives me the failure
2005-08-09T15:29:15.000+08.00

Help


create_OpptyCount : Error: Extract Date: value not of required type: 2005-08-09T15:29:15.000+08.00

-------------------------------------------------

henrikhenrik
Check the type you actually transfer on the wire. It probably is a string.

I had the same trouble here where date was transfered as a string and sf didn't like it. No matter how nice and standard conforming it looked.


----

$date="2005-08-09T15:29:15.000+08.00";

$case = array ( 'type' => 'Case',
'Origin' => 'Web',
new SOAP_Value('Date', 'dateTime', $date),
'Subject' => 'Some Subject'
);

$result = $client->create($case);

----