If a user event script is deployed for a record, it can’t fetch the custom sublist if the context is CSV import. But it will work in other contexts.
If it is aftersubmit, the solution that we can use is to load the record, instead of using newRecord from the script context. Also, we can use searches.