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.
Can not access the member items of an assembly record
I am at wits end and it's probably something stupid.
I'm looping through items from a specific transaction and then checking the type. When I come across a kit, assembly, or group, I want to load that specific item and then look further into its members to look for certain field attributes. Everytime I do this, I get a line count of 0. Am I forgetting a step or missing something?
// recType and recId are correct, the record loads fine var rec = nlapiLoadRecord(recType,recId); if ( !rec ) { return; } alert('load record good'); // always get to here var memberCnt = rec.getLineItemCount('member'); alert('member count: '+memberCnt); // always displays 0 0