Hello,
I have been attempting to write a time value to a "Time of Day" custom field using a suitelet. I have spent the last four hours working on it. All I have managed to do is get a different variation of the same error message. What do I need to do to write to a time of day field without getting an invalid_fld_value error?
I have matched the company and user preferences as per SuiteAnswers Answer Id: 44671.
Here is the most promising code example, that still failed:
//the time variable is milliseconds as a string ftime = format.format({ value: new Date(parseInt(time)), type: format.Type.TIMEOFDAY }); time_punch.setValue({ fieldId: 'custrecord_punch_in_time', value: ftime }); time_punch.save(); The formats I have attempted to write into the Time of Day field are as follows:5/30/2016 15:58:251/1/1970 3:22PM1/1/1970 3:22 PM12:5612:52 pm1538 - per SuiteAnswers: Answer Id: 223143:28:00 PM - per forum post https://usergroup.netsuite.com/users...cts-valid-data3:28:00PM3:24PMPassed in a Date object directlyAny ideas how to write to this field from a Suitelet? By the way... I can write to it using multiple formats in the GUI.:h_a_w: