How to get records which are modified in last 5 days in Salesforce?

How to get records which are modified in last 5 days in Salesforce?

Check the below SOQL to get records which are modified in last 5 days.

Sample SOQL:

SELECT Name, Id, LastModifiedDate FROM Account WHERE LastModifiedDate = LAST_N_DAYS:5


Leave a Reply