Discussions
CTE or Recursive Query for Hierarchical Data (Employee / BOM)
I would like to get insights on retrieving hierarchical data (e.g., employee reporting structure or BOM/Sub-BOM hierarchy) using CTE queries via ODBC/ADO.NET or recursive logic.
From my understanding, SuiteQL does not support CTEs or recursive queries, so I am exploring alternative ways to achieve this. I noticed some colleagues have implemented similar solutions and would like to learn from your experience.
Specifically:
- How did you implement hierarchical data retrieval using ODBC/ADO.Net or SuiteQL?
- Are there any workarounds or best practices for recursive queries in NetSuite?
- Any references to existing SuiteAnswers articles or SuiteIdeas enhancements that address this would be very helpful.
Abdul Hannan
ERP Transformation & Digital Strategy Leader | Oracle NetSuite Certified Professional (8x) | ERP Ecosystem Contributor
Specializations: BI & Reporting | ERP Consulting | Administration | Finance & SCM | Manufacturing | Smart Factory
CCBA® • PMI-ACP® • ASM®
📧abdul.hannan@nizamalam.group |📱 +92 308 50584444
🔗 LinkedIn Profile: abdul-hannan-65327226
Driving scalable, insight-led, and AI-enabled enterprise transformation.