[SalesForce] Query for records modified last 15 minutes

How can I set up a query to search for records that were modified in the last 15 minutes? This is being used in Jitterbit dataloader not using apex. From most posts I have seen this doesn't seem possible.

Another idea I had was use a formula that would mark a boolean field as true if record was modified in last 15 minutes. However, I had no luck with the formula either.

Does anyone have a workaround or solution?

Best Answer

I was able to make the following Minutes_Since_Modified__c formula work:

(NOW() - LastModifiedDate) * 24 * 60

Then I was able to query for it:

SELECT Id FROM Account WHERE Minutes_Since_Modified__c < 15