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 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
retrieving hierarchical data
i have a custom record that represents hierarchical data, a parent/child type relationship.
eg. component 1 uses component 2 & 3, component 3 uses component 4, 5 & 6. in addition component 1 might have quantity 5 of component 2, and quantity 8 of component 3.
Given a node in the hierarchy i want to be able to get all their descendants as a single list.
I wanted to be able to do this either via a saved search or SuiteAnalytics dataset/query.
In regular PL/SQL there is 'CONNECT BY PRIOR' or CTEs WITH recursion which I think are designed for hierarchical data. I havent had much luck with using them with SuiteAnalytics/SuiteQL in NetSuite. I have no idea how to do this with saved searches.
Tagged:
0