Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
SuiteScript: How to access Related Records from a Transaction
I'm working on a set of SuiteScripts that are intended to synchronize a pair of custom fields between two different record types. I have most of the logic complete, but I've been stuck at a brick wall for almost two days.
Specifically, I'm trying to access the Related Records on an Opportunity (from the beforeLoad() entry point of a User Event on the Opportunity), which I understand is just a Transaction. The Related Records I'm trying to reach are Cases. Of course, in my testing, I have an Opportunity which was created from a Case, and I can see the Case in the Related Records sublist on the Opportunity (and vice versa).
0