Hmm, I'm confused - I have an after submit event s...
# suitescript
k
Hmm, I'm confused - I have an after submit event script that fires on Sales Orders. After the Sales Order is created, the
orderstatus
field defaults to
A
which is equivalent to
Pending Approval
- however, when I click the 'Approve' button on the Sales Order Record, the after submit event's
context.newRecord.getValue({ fieldId: 'orderstatus' })
is still `A`; however, when I go and look at the Sales Record immediately after, the
orderstatus
field is set to
B
(
Pending Fulfillment
) - um?