quick question - I am running a suitelet to captur...
# suitescript
m
quick question - I am running a suitelet to capture a value, I have that value returned via suitelet URL, I am now trying to set that value on the record, but it is not setting. Any advice? I am using context.newRecord to retrieve a value - should I reload the record again to set ?
c
record.load({ ... })
then
rec.setValue({ ... })
then
rec.save()
. Have you tried that?
m
I just got an error that says "that record is not editable"
my suitelet is pushing a value into user event script
then I call suitelet thru user event
i return the data and now i have as a string
but i cannot set it to the field
context.newRecord says it loads it in read only, so that is my issue, I need to load record correctly
s
What is the userEvent context? View, Edit, etc
m
after record submit, and it is none
i fixed it, thanks
👏🏻 1