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
22
Views
8
Comments
edited Mar 30, 2018 9:21AM in Customer Portal 8 comments

Content

Hi Folks,

I have product (ServiceProduct)  in parent-child relationship

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

note:

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 }

or

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.

Register

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