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
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
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