can we set values on afterSubmit (UE script) using...
# suitescript
m
can we set values on afterSubmit (UE script) using context.newRecord > setValue or must the record be loaded first before setting the values?
c
I don't believe so. I've always had to submitvalues to the record, or reload the record, update it, and save it.
c
try it! what happens when you do it?
m
yeah, had to load the record, set value, then save
👍 1
c
You don't have to do that unless its a sublist value. Submitfields will do it and takes less governance.
👍 2
either works though
s
Or don't use afterSubmit
👍 1