What event type?
# suitescript
e
What event type?
c
Create
e
Those values probably aren't set yet
Many of the native fields don't get updated until after all scripts/workflows have completed
including after
afterSubmit
, which is extremely annoying
t
They would be available if you loaded the record in the afterSubmit though.
c
@Todd Grimm That's what I ended up doing - Eric's right, there are apparently some values that just don't get set until everything finishes, even though the docs claim the afterSubmit entry point runs after the write operation is complete. ¯\_(ツ)_/¯
Thanks anyway!
t
👍
e
Particularly annoying with fields like
createdfrom
on Transactions
💯 1
but yes a
load
or a
lookupFields
should retrieve the value