How to get records which are modified in last 5 days in Salesforce? September 29, 2016June 9, 2022InfallibleTechie Admin 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