Search code examples
dynamics-crmcrmfetchxmldynamics-365

Fetch hierarchy data using FetchXML in Dynamics CRM 365


I need to create a FetchXML request that retrieve every division and it's subdivisions from dynamics 365.

Expected result

Div
  -- Div1
     -- Div1-1
     -- Div1-2
  -- Div2
     -- Div2-1
     -- Div2-2
  -- Div2
  -- Div3
  -- Div4

Solution

  • Assuming you have a dynamic hierarchy of divisions, that is not possible using FetchXML.