Trying to use some lockdown time to switch some st...
# suitescript
s
Trying to use some lockdown time to switch some stuff to 2.0 and scratching my head a lot!.... Working with a Sales Order beforeSubmit I want to reference a field from the current records subsidiary (Document Number Prefix), obviously
var subPrefix = currentRecord.getValue({ fieldId: 'subsidiary.tranprefix' });
doesn't work but stumped as to what would?!
b
records dont work that way
either load the subsidiary using N/record, or search the subsidiary using N/search
s
Perfect - figured something like that but good to know on the right bearing, thank you :)
b
i forgot to give you the sourcing option, you can create a custom field that uses sourcing and get its value instead