Cory Weiner
02/24/2022, 10:32 PM*message*: "field.getSublistName is not a function"
I’m trying to set the rate on item receipt. This is the full script i am running… no reference to “getSublistName”?
let ir = record.load({
type: record.Type.ITEM_RECEIPT,
id: 405
})
ir.setSublistValue({sublistId:"item", line: 1, fieldId: "rate", value: 24})
ir.save()
Mike Robbins
02/24/2022, 10:35 PMKevin
02/24/2022, 10:35 PMMike Robbins
02/24/2022, 10:35 PM.save()
may be triggering user event scripts on that record.Cory Weiner
02/24/2022, 10:37 PMMike Robbins
02/24/2022, 10:39 PM.save()
in a try/catch
and inspect the error to see if you can get a file and line number.Cory Weiner
02/24/2022, 10:42 PMbattk
02/24/2022, 10:43 PMbattk
02/24/2022, 10:44 PMCory Weiner
02/24/2022, 10:44 PMCory Weiner
02/24/2022, 10:44 PM