Create folder tree dynamically from XML

Post Reply
User avatar
vernonvd
Member
Posts: 45
Joined: Tue Oct 09, 2012 9:21 am
Location: Pretoria, South Africa

Create folder tree dynamically from XML

Post by vernonvd »

I am trying to create a folder structure hierarchy in Switch using information from an incoming XML.
I can achieve this with the "Create Job Folder" app. However, the problem I am facing is that the JobPartID varies from XML to XML. One XML might have 2, while another might have 7. How can I achieve this dynamically?

Structure example

Client Name
XML
Client Info
JobPartID - 01
JobPartID - 02
rhd_ole
Member
Posts: 149
Joined: Mon Jan 24, 2022 5:36 pm

Re: Create folder tree dynamically from XML

Post by rhd_ole »

vernonvd wrote: Fri Nov 22, 2024 1:37 pm I am trying to create a folder structure hierarchy in Switch using information from an incoming XML.
I can achieve this with the "Create Job Folder" app. However, the problem I am facing is that the JobPartID varies from XML to XML. One XML might have 2, while another might have 7. How can I achieve this dynamically?

Structure example

Client Name
XML
Client Info
JobPartID - 01
JobPartID - 02
I've done something similar where I wrote the path from the XML to privatedata such as 'path_structure'. eg: folder/path/to/folder. In my case I wanted each within the parent so I used the 'path_structure' as the segment 1 hierarchy Path, and then connect that to Archive Hierarchy. The result would be the proper structure. I would have to test to see if it will work to create folders not within the parent of each folder.

Otherwise I'd prob write a python script since I know it the best and have that dynamically create the folders based on the XML.
Color Science & Workflow Automation
User avatar
tdeschampsBluewest
Member
Posts: 128
Joined: Tue Jun 01, 2021 11:57 am

Re: Create folder tree dynamically from XML

Post by tdeschampsBluewest »

You can still create a loop with retry-it app?

It's not the most efficient way if you have a lot of traffic, but it does the job.
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
Post Reply