TheAntman
12/10/2019, 2:34 PM"You entered 'null' into a field where a calendar date was expected.\\nPlease go back and change this value to the correct date."
The trouble is I can log the value of the field before and after I set it and it all appears fine. I’ve tried creating the date object like 50 different ways (might be a slight exaggeration) but the issue seems to persist. The only other error message I managed to get from it was the date being an incorrect format.
At the moment I use new Date() with the unix timestamp to get the date object and from what I can tell that should be fine?battk
12/10/2019, 2:44 PMbattk
12/10/2019, 2:44 PMTheAntman
12/10/2019, 2:51 PMsalesOrder.setSublistValue({
sublistId: 'item',
fieldId: 'custcol_assoc_sub_start_date',
line: lineId,
value: new Date(startDateObj)
});TheAntman
12/10/2019, 2:51 PMbattk
12/10/2019, 2:52 PMbattk
12/10/2019, 2:52 PMbattk
12/10/2019, 2:53 PMbattk
12/10/2019, 2:53 PMTheAntman
12/10/2019, 2:59 PMPNJ
12/10/2019, 3:05 PMTheAntman
12/10/2019, 3:13 PMbattk
12/10/2019, 3:14 PMbattk
12/10/2019, 3:14 PMbattk
12/10/2019, 3:15 PMbattk
12/10/2019, 3:15 PM