Activity › Forums › Salesforce® Discussions › How to delete Accounts created in the last 7 days in Salesforce?

  • How to delete Accounts created in the last 7 days in Salesforce?

    Posted by Shweta on October 7, 2020 at 4:39 PM

    How to delete Accounts created in the last 7 days in Salesforce?

    Aditya replied 6 years ago 2 Members · 1 Reply
  • 1 Reply
  • Aditya

    Member
    October 7, 2020 at 8:18 PM

    Select id from TechM__c where CreatedDate <= 2016-11-15T00:00:00Z Select id from TechM__c where DAY_ONLY(CreatedDate) <= 2016-11-15Select id from TechM__c where CreatedDate <= YESTERDAY Select id from TechM__c where CreatedDate = TODAY

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos