ericbirdsall
09/15/2021, 3:05 PMrecord.submitFields()
documentation shows:
You cannot use this method to edit and submit the following:
Select fields
Sublist line item fields
Subrecord fields (for example, address fields)
Does that mean the only way to set a select field would be to use record.load, record.setValue & record.save
?Sandii
09/15/2021, 3:36 PMericbirdsall
09/15/2021, 3:39 PMrecord.submitFields()
I get "Unexpected Error".
When I try to set a non-select field with record.submitFields()
, it works just finestalbert
09/15/2021, 3:46 PMsubmitFields()
isn't as awesome as everyone thinks, IMHOSciuridae54696d
09/15/2021, 3:51 PMSciuridae54696d
09/15/2021, 3:52 PMericbirdsall
09/15/2021, 3:55 PM"...is not a valid value"
so I'd agree you can't use text with record.submitFields
, but you apparently can't use values either (if the field is a select field). I went with record.load/setValue/save in my case. It is what it is, I supposeSciuridae54696d
09/15/2021, 3:57 PMericbirdsall
09/15/2021, 4:02 PMrecord.submitFields({
type: record.Type.BIN,
id: 1213,
values: {
custrecord_warehouse_location:"1"
}
});
Have also tried all combinations of putting custrecord_warehouse_location in double quotes, tried removing quotes from the value of 1
I'm the admin, so I don't believe it's a permission errorstalbert
09/15/2021, 4:21 PMSciuridae54696d
09/15/2021, 4:23 PMericbirdsall
09/15/2021, 4:23 PMstalbert
09/15/2021, 4:27 PMstalbert
09/15/2021, 4:29 PMSciuridae54696d
09/15/2021, 4:30 PMstalbert
09/15/2021, 4:34 PMericbirdsall
09/15/2021, 4:35 PMSciuridae54696d
09/15/2021, 4:40 PMSandii
09/15/2021, 4:44 PMSciuridae54696d
09/15/2021, 4:48 PMSandii
09/15/2021, 4:49 PMstalbert
09/15/2021, 5:13 PMstalbert
09/15/2021, 5:18 PM