You need to sign in to do that
Don't have an account?
Ally Abdool Latiff Mohabuth
SOQL query to retrieve record in last 24 hours
Hell0. I need a SOQL query to retrieve the record created in last 24 hours.. I need to the query and I am not using it in apex code. So I'm not able to use System.Now .. and If I use LAST_N_DAYS:1, it is not giming me specific last 24 hour range at any time in the day.
Last_n_days:1 should work fine. This is how the query would look:
select id from Account where createddate >= LAST_N_DAYS:1
Thanks
Consider the time as 4pm, 23rd sept 2016
select id from Account where createddate >= 2016-09-22T16:00:00Z