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.
How to pass variables to SuiteQL Suitelet
Hi There
I am using a modified version of a suitelet originally created by Timothy Dietrich.
The Suitelet is supposed to load as part of a tab on a Netsuite record in a beforeLoad user event.
I want to pass parameters to the SuiteQL search criteria (the SQL part) from the page.
From the screenshot, line 124 works correctly to extract the record's internal id.
I am trying to pass the id to the function starting on line 148 though can't find the correct syntax online on how to do that.
I have found that 'hard coding' the value like line 153 works.
Tagged:
0