Does anyone know how to get a record as a object t...
# suitescript
k
Does anyone know how to get a record as a object to reference to update fields on? Lets say I want to update purchase order field from a sales order field how to I get the sales order field?
a
if you have the interalid of the sales order you can just use
search.lookupFields
b
wrong model, you work at the record level, not the field level
your question should be how do i get a field from a sales order so that i can set it on a purchase order
the getting the field from the sales order is fairly open ended, the primary choices for that are to either search for it, query it, or to get it from the record
you have less options for actually setting the field, its usually going to be using N/record