Kiosk Studio: Function FIX for Date/Time Field (Keep getting wrong format error)
I am using the foillowing function in my Kiosk Studio to update the previously entered Date/Time field from previous screen to update that to the same date/time field in Lead Record. Every time I 'Save & Execute' I get a Success but with 'Date/time Format invalid' error. What do I need to enter into the date/time field when I Save/Execute to update and save correctly?
- // Initialize a map to hold the field data for updating
- updateMap = Map();
- // Put the auction date/time field into the map
- // Make sure to replace 'DateField' with the actual field API name
- updateMap.put("Date",Date);
- // Update the lead record using the LeadID argument
- updateResp = zoho.crm.updateRecord("Leads",LeadID,updateMap);
- // Check if the update was successful
- if(updateResp.get("status") == "success")
- {
- info "Lead record updated successfully with auction date/time.";
- }
- else
- {
- info "Failed to update lead record: " + updateResp.get("message");
- }