05-06-2024 08:47 AM
Hello Experts,
I'm trying to automate an export of account hierarchy which is then used to replicate same hierarchy in another app/tool.
However, when I export Metadata in XML (tried both via Business Rule or via Application>Load/Extract) , it doesn't capture information on order of arrangement among siblings.
So, while loading XML extract to new app, by default all siblings are arranged in ascending order of their member names.
Is there a way to capture this information when doing export?
Thanks,
Gaurav
Solved! Go to Solution.
05-07-2024 03:06 AM
Hi Gaurav - Something else must be going on. For a fresh hierarchy build the members will be sorted in the order they appear in the Relationship section of the xml file. If you are updating an existing hierarchy, the old order will be retained.
05-07-2024 03:06 AM
Hi Gaurav - Something else must be going on. For a fresh hierarchy build the members will be sorted in the order they appear in the Relationship section of the xml file. If you are updating an existing hierarchy, the old order will be retained.
05-07-2024 08:46 AM - edited 05-07-2024 08:46 AM
Adding to @kberry 's comments, make sure you're using synchronous code and objects that preserve order when you pass the structure of the Relationship section to your target.
Also, when you say:
"However, when I export Metadata in XML (tried both via Business Rule or via Application>Load/Extract) , it doesn't capture information on order of arrangement among siblings."
It would be helpful to know what "it' is that isn't retaining the order of the relationship section in the exported XML.