<@U4TPAFXEC> use the option `fireSlavingSync` when...
# suitescript
j
@jen use the option
fireSlavingSync
when you set the item field. it will cause the function to block until dependent fields (like item options) are sourced
Copy code
rec.setSublistValue({
  sublistId: 'item',
  fieldId: 'item',
  value: 'whatever',
  fireSlavingSync: true
});