“TypeError: newRec.getSublistSubrecord is not a function,” indicates that the getSublistSubrecord function is not available on the Record object in the client script context. This function is available in server-side scripts but not in client scripts.