I want to sort the search results and get the latest records
I want to search the set items of the quote, get a list of matching records, and get the latest record ID among them. But the script I wrote does not work well. Please tell me how to do it.
- results = zoho.crm.searchRecords("Quotes","(field15:equals:aaaaa)");
- for each record in results
- {
- create_time = record.get("Created_Time");
- create_time.sort(true);
- info record;
- }
- info record;