How to define the "where clause" in SFDC SOQL to extract the date that have been modified in last 24 hours. Thanks.
PS : I am using the QUERY rest URI for query the data.
How to define the "where clause" in SFDC SOQL to extract the date that have been modified in last 24 hours. Thanks.
PS : I am using the QUERY rest URI for query the data.
Best Answer
You can use the existing LastModifiedDate or SystemModStamp fields in your SOQL query (See System Fields). The
LAST_N_DAYS
orTODAY
date literals may be useful. Otherwise you can use a specific calculated UTC Date time value.There was a recent blog post on the performance implications of LastModifiedDate vs SystemModStamp - Force.com SOQL Performance Tips: LastModifiedDate vs SystemModStamp