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
Assuming you have a dynamic hierarchy of divisions, that is not possible using FetchXML.