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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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'); var memberCnt = rec.getLineItemCount('memberitem'); alert('member count: '+memberCnt); 0