Search Records within last 7 days based on email address

Search Records within last 7 days based on email address

Hi There,

In workflow I am trying to create a script that checks if new records have matching email address fields with any other lead record created in the last 7 days and then apply a tag to any records found. 

Search Records does not seem to support multiple criteria 
e.g. 
  1. // Get Record
  2. resp = zoho.crm.getRecordById("Leads", recordID);
  3. // Get Email Field
  4. emailToCheck = resp.get("Email");
  5. // Calculate the date 7 days ago
  6. sevenDaysAgo = (currentDate - 7.days);
  7. // Search for records with the same email in the last 7 days
  8. search = zoho.crm.searchRecords("Leads", emailToCheck && Created_Time >= sevenDaysAgo);
  9. //Apply tag to records found


How should I go about it?