Examples of Loading Organization Tree Nodes

You can load an organization with any classification as a tree node to an organization tree version. This topic shows how to load organization tree nodes using HCM Data Loader.

Creating Organization Tree Nodes

This example OrganizationTreeNode.dat file loads organization tree nodes to an existing organization tree version.

METADATA|OrganizationTreeNode|TreeStructureCode|TreeCode|TreeVersionName|OrganizationName|ClassificationCode|ParentOrganizationName|ParentClassificationCode
MERGE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|Vision Enterprise|Enterprise||
MERGE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|US Division|Division|Vision Enterprise|Enterprise
MERGE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|US LE|Legal Employer|US Division|Division
MERGE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|EMEA Division|Division|Vision Enterprise|Enterprise
MERGE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|France LE|Legal Employer|EMEA Division|Division
MERGE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|Italy LE|Legal Employer|EMEA Division|Division
This figure shows the hierarchy nodes that this OrganizationTreeNode.dat file creates.
Vision Enterprise is at the top of the hierarchy. It inherits US Division and EMEA Division. US Division inherits one legal employer, US LE. EMEA Division inherits two legal employers, France LE and Italy LE.

Deleting Organization Tree Nodes

You can delete organization tree nodes using HCM Data Loader. The organizations are removed from the tree version, but the organization objects themselves continue to exist. To delete an organization tree node and all nodes below it in the organization tree hierarchy, set the DeleteChildNodesFlag attribute to Y. This example OrganizationTreeNode.dat file deletes a node and its child nodes.

METADATA|OrganizationTreeNode|TreeStructureCode|TreeCode|TreeVersionName|OrganizationName|ClassificationCode|DeleteChildNodesFlag
DELETE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|EMEA Division|Division|Y
This figure shows the hierarchy after deleting the EMEA Division node and its child nodes.
Vision Enterprise is at the top of the hierarchy. It inherits US Division, which inherits the legal employer US LE.

To delete an organization tree node and promote its child nodes, set the DeleteChildNodesFlag attribute to N. This example OrganizationTreeNode.dat file deletes a node and promotes its child nodes.

METADATA|OrganizationTreeNode|TreeStructureCode|TreeCode|TreeVersionName|OrganizationName|ClassificationCode|DeleteChildNodesFlag
DELETE|OrganizationTreeVersion|PER_ORG_TREE_STRUCTURE|Vision Tree Code|Tree Version 2017|EMEA Division|Division|N
This figure shows the hierarchy after deleting the EMEA Division node and promoting its child nodes.
Vision Enterprise is at the top of the hierarchy. It inherits US Division, France LE, and Italy LE. US Division inherits the legal employer US LE.