razer456
11/30/2021, 2:49 AMrecord.create({
type: 'customrecord_pla_usage_log',
isDynamic: true
});
record.setValue({
fieldId: 'custrecord_pla_execution_logs',
value: error.toString()
});
TypeError: record.setValue is not a function, why?
i have used this to set the error log record in try catch(error)
i have defined module correctly too, why not?ehcanadian
11/30/2021, 2:53 AMrecord
is most likely used in your define for N/record
razer456
11/30/2021, 2:53 AMehcanadian
11/30/2021, 2:53 AM.setValue
is used with the record instance retunred from record.create or record.loadrazer456
11/30/2021, 2:54 AMrazer456
11/30/2021, 2:54 AMrazer456
11/30/2021, 2:55 AMrazer456
11/30/2021, 2:55 AMehcanadian
11/30/2021, 2:55 AMconst myRecord = record.create({
type: 'customrecord_pla_usage_log',
isDynamic: true
});
myRecord.setValue({
fieldId: 'custrecord_pla_execution_logs',
value: error.toString()
});
razer456
11/30/2021, 2:55 AMrazer456
11/30/2021, 2:55 AMehcanadian
11/30/2021, 2:56 AMrazer456
11/30/2021, 2:56 AM