ericbirdsall
01/17/2024, 6:57 PMconst customerRecord = record.create({})
customerRecord.setValue('custbody_some_field_id',1234) // <--- where 'custbody_some_field_id' is a Free Form Text field
customerRecord.save()
^ Field would get set to 1234.0
However, adding .toString()
fixed the issue
const customerRecord = record.create({})
customerRecord.setValue('custbody_some_field_id',(1234).toString())
customerRecord.save()
^ Field would get set to "1234"jen
01/17/2024, 11:22 PMjen
01/17/2024, 11:22 PMericbirdsall
01/17/2024, 11:23 PMericbirdsall
01/17/2024, 11:24 PM.toString()
and now I'm afraid to go backjen
01/18/2024, 12:22 AMjen
01/18/2024, 12:23 AM.0
is when trying to return a numeric value that is the internalid as a return parameters in a workflow action script, when the return type is List/Record->somethingorotherjen
01/18/2024, 12:23 AMjen
01/18/2024, 12:23 AMjen
01/18/2024, 12:23 AMjen
01/18/2024, 12:24 AMNiska
01/18/2024, 12:56 AMNiska
01/18/2024, 12:56 AMjen
01/18/2024, 1:38 AMjen
01/18/2024, 1:38 AM///// WHYYYY DOES THIS HAVE TO BE A STRING???
return String(new_ws.id);
battk
01/18/2024, 2:10 AMbattk
01/18/2024, 2:10 AMbattk
01/18/2024, 2:11 AMbattk
01/18/2024, 2:14 AMNiska
01/18/2024, 2:32 AM