Hi, is it possible to treat a loaded record as a n...
# suitescript
i
Hi, is it possible to treat a loaded record as a normal object, asking this because Im loading a record usinf
record.load
I see there is a key named fields, but when I assign this key to a variable to do a loop it doesnt work, what worked here was using the
toJSON()
method on the record, what Im trying to accomplish is get all the fields on the record and filter the ones that its id starts with
custrecord_something
e
Use record.getFields to get all fields on the record, and then loop through and record.getValue to accomplish this
i
Thanks!