You need to sign in to do that
Don't have an account?

Select statement correct?
Hello,
I'm pretty new to force.com. I've tried to deploy this (among other code) into production, which failed. Within eclipse and the sandbox there were no complaints. I wonder if this coding is correct or not:
Contact[] contacts = [select Id, Birthdate,Email, FirstName, LastName, Salutation from Contact
where DAY_IN_MONTH(Birthdate) =: (Date.today().day()) and
CALENDAR_MONTH(Birthdate) =: (Date.today().month())];
Thanks regards
yep. In fact, we don't have version spring '10 in production!
you helped a lot!
Thanks
Hans M. Klemenc
Hello Jim,
the code, which worked fine a few days ago in the sandbox, doesn't work today:
Contact[] contacts = [select Id, Birthdate,Email, FirstName, LastName, KON_Aktionen__c, HasOptedOutOfEmail, Anrede_Brief__c, Salutation from Contact
where DAY_IN_MONTH(Birthdate) =: (Date.today().day()) and
CALENDAR_MONTH(Birthdate) =: (Date.today().month())];
It seems that the compiler in eclipse doesn't accept the new date-functions today. But why all at once? Has anything changed within the sandbox? (we already had the spring version running)
Thanks Regards
Hans
I don't think that Eclipse supports the version 18 API yet, which is why it wouldn't work with Eclipse. Does it work if you execute an anonymous statement via the system log? That is how I was testing. Now, my production org is updated, and the same statement works in both sandbox and production.