Skip to main content
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.
5 réponses
  1. 23 sept. 2016, 20:26
    In that case, the only solution I see is to enter the exact time stamp like below:

    Consider the time as 4pm, 23rd sept 2016

    select id from Account where createddate >= 2016-09-22T16:00:00Z
0/9000