You need to sign in to do that
Don't have an account?
OlegB
Filtering on Date vs DateTime fields
Did SalesForce start enforcing the query parameter distinctions between the Date and DateTime fields?
A query containing a DateTime field in a filter condition used to take date-only parameters just fine.
I.e. select id from Sales_Forecast__c where CreatedDate > 2007-01-19 was not causing any problems even though the CreatedDate is a DateTime field and we’re giving it a date-only param. Now that causes an error, but this select id from Sales_Forecast__c where CreatedDate > 2007-01-19T11:11:11Z runs ok.
Did anyone else notice this? Could someone from SF please confirm or deny this?
Thanks,
Oleg.
A query containing a DateTime field in a filter condition used to take date-only parameters just fine.
I.e. select id from Sales_Forecast__c where CreatedDate > 2007-01-19 was not causing any problems even though the CreatedDate is a DateTime field and we’re giving it a date-only param. Now that causes an error, but this select id from Sales_Forecast__c where CreatedDate > 2007-01-19T11:11:11Z runs ok.
Did anyone else notice this? Could someone from SF please confirm or deny this?
Thanks,
Oleg.
The old behvour is still supported on the older api versions, so this shouldn't cause any regressions.