This looks great, thanks!
Relatedly—do you happen to know if the table reference in SuiteQL is created only once when SuiteQL is installed? I’m having an issue where tables and fields appear in the SuiteQL table reference, but result in errors when I try to run queries on them, and when I cross reference with the records catalogue no such table seems to exist. I’m starting to suspect that the table-reference might be out of date.