Was there an email from Oracle a while ago to do w...
# suitescript
c
Was there an email from Oracle a while ago to do with changes around how getSublistSubrecord() was going to work?
d
Not quite the same context, but you might be thinking of the "CurrentRecord.getSubrecord Behavior Change" in the 2021.1 release notes?
s
weird, I thought that's was hose
getSubrecord
worked all along?
maybe it was different specifically for
currentrecord
context?
I don't do client scripts all that often
d
Here is the paragraph from the 2021.1 release notes
CurrentRecord.getSubrecord Behavior Change As of 2021.1, if a script uses the CurrentRecord.getSubrecord(options) to get a subrecord that does not exist, a new subrecord is created and returned. With this change in behavior, it is no longer possible to use this method to check whether a record has an existing subrecord. Use the CurrentRecord.hasSubrecord(options) method to determine if the field contains a subrecord.
If that helps?
s
I do vaguely recall NS not getting the subrecord in the past - maybe that was in a client script. Sounds like this is a welcome fix in my mind!
if
getSubrecord()
now has consistent behavior in all contexts