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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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