heroku/databasedotcom — Issue #22: Salesforce - type issues with default values
Author: rekisu
Created: 2011-10-21 01:23:29+00:00
State: open

Hello,

I've just started playing around with this gem today and I seem to have hit an interesting issue. In my Salesforce org I have an object with a custom Date field with a default value of TODAY(). If I use your gem to materialize this object, create a new record, and then save it I get the error "Databasedotcom::SalesForceError: Cannot deserialize instance of date from VALUE_STRING value TODAY()". Upon inspection it appears as though the Date field is defaulting to the value of "TODAY()" but the generated object is expecting a Date - hence the error.

Is there any way to overcome this error while still making use of Salesforce's default values?

Thanks,

Lex