I have this custom record. I have succesfully ret...
# suitescript
c
I have this custom record. I have succesfully returned the values in the fields (just placeholders for now) But i also need to load the record, and update those fields with new values but i cant seem to figure out how to. I am currently getting this error: " ReferenceError: "record" is not defined. " What am i doing wrong?
n
Need to see the entries at the top of your script, how have you defined the record object?
@c c what have you defined "record" as in the bracketed section
c
message has been deleted
N/record
n
ooops
You missed record out of your list of objects
c
huh?
n
you have (runtime,serverWidget....) but no record
c
ahh
n
easy mistake to make 😉
c
message has been deleted
THe id is wrong tho, i just need to find the right one now i think 🙂
Thanks 🙂
First time im doing this 😄
n
and line 75 is what?
c
wrong id
message has been deleted
i wrote in the chat you sent me 😄
c
That ID looks interesting.
Generally speaking, that should be an internal ID for the record you want to load.