You need to sign in to do that
Don't have an account?
Abhinav Gupta
Does convertTimezone function ever works ?
I tried calling this function from both APEX and WS API, with a simplest soql fragement mentioned in salesforce docs itself i.e.
SELECT convertTimezone(CreatedDate) FROM Opportunity
I always got this error : MALFORMED_QUERY: Invalid aggregate function: convertTimezone
How does this guy works ?
Hi,
The doc indicates that you can only use convertTimezone() in a date function, such as HOUR_IN_DAY.
For example:
The query you mention is mentioned as a query that does not work. From doc:
The following query doesn't work because there is no date function.
All Answers
Hi,
The doc indicates that you can only use convertTimezone() in a date function, such as HOUR_IN_DAY.
For example:
The query you mention is mentioned as a query that does not work. From doc:
The following query doesn't work because there is no date function.
Thanks Man, I was in super hurry that time. So just copied to the SOQL snippet and tried running it :)