You need to sign in to do that
Don't have an account?
Rishabh Patel 1
SOQL lastmodified date time within 60 minutes
How do I Write a SOQL query which selects all leads that are modified within 60 minutes from now
Select all the lead Lastmodified date within 60 minutes or last hour
The easiest way might be to make the following Minutes_Since_Modified__c formula:
(NOW() - LastModifiedDate) * 24 * 60
Then to query for it:
SELECT Id FROM Lead WHERE Minutes_Since_Modified__c <= 60
OR