We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Display all the child nodes of the ServiceProduct in a single ROQL or REST API

Received Response
edited Mar 30, 2018 9:21AM in Customer Portal 8 comments


Hi Folks,

I have product (ServiceProduct)  in parent-child relationship

I need a ROQL which displays all the child nodes of the Product


select * from ServiceProduct where ServiceProduct.Parent=#

  • '#' represents parent id

this query displays the result as single level child nodes ( not displaying child of child nodes)

Refer image : level 1 - world

                       level 2 -  { Asia, Africa, Europe }

                       level 3- { France, Germany, UK }


I need REST API for ServiceProduct which displays all the child product of a particular parent product 

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!