Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Best way to access custom records from contact
Hey, all
I've got a Custom Record called 'Inquiry Information', ID 'customrecordmks_inquiry_information' that is used to hold Inquiries people enter on our website. It has a List/Record field 'Contact', ID 'custrecordmks_contact' pointing to Contact, with Record is Parent.
In an event script, on an edit of contact, we'd like to retrieve these records to do some calculations (we're doing some lead scoring and they get bonus points to their score if they've entered inquiries and even more if they've entered specific inquiries)
How can I get them? I know with build in sublists, I can use getLineItemCount() and go from there, but I've tried a few options and always get -1. How do I get the associated records?