Within the "Vendors" module, I want to create a scheduled function so that the
Certification Status updates based on ‘todays’ date relative to the cert
expiration. So for this example, I am working on Supplier Profile. This
particular vendor has a Supplier Profile expiration of 1-7-2023. I
want the scheduled function to recognize that it has expired, and mark it “EXPIRED.”
The other two options being “No” for cases when there is no cert available
for the vendor, and “Approved” when the cert is not expired.

response = zoho.crm.getRecords("Vendors",1,2000);
for each supplier in response
{
todayDate = today;
expireDate = supplier.get("Supplier_Profile_Expiration");
supplierId = supplier.get("id");
if(expireDate < todayDate)
{
supplierProfile = {"supplier_Profile":"Expired"};
updateRecord = zoho.crm.updateRecord("Vendors",supplierId,supplierProfile);
}
else
{
}
}
This Script is not working, and not updating the Supplier Profile Field (which is an open text field), as I thought it would have. Any suggestions on how to fix?