I’m wondering if anyone has ever seen record.getFi...
# suitescript
s
I’m wondering if anyone has ever seen record.getFields() not return all fields? this is a custom record and i’m trying it on a blank/new record
s
I have been using:
record.create().getFields()
If you are not seeing the fields, make sure you're using the default form, which should have all of the fields. -- I also like to limit to the fields which start with 'custrecord'
@sterling_rose
@sterling_rose @Michael Pope I remember the context now.... In a 'beforeLoad' UE, the record.getFields function only returned fields with values. The only way to get 'all' of the fields was to use
record.create.getFields()
.
m
@suitedev Thanks!
s
thanks! i am trying on a new record AND i did try your suggestion to get the default form (however, the fields are on the custom form too) and no luck. 😞 maybe i should submit a case but its a bit of a pain as i’m not a contact
s
@sterling_rose are you doing this in a UE?
s
i was trying to do it in a user event but i’ve also been generally debugging it in the browser console. it slightly bothers me that i can’t figure it out but at this point i’ve got to just move on. 😕