Trigger flow for XML in job folder with asset
Posted: Wed Aug 04, 2021 10:27 pm
I have an XML pickup flow set up that accepts a folder containing the XML and the asset. This is a Submit Hierarchy flow with target folder level and name.
The way it works now, I have a folder containing the XML. I wait a while for the artwork, indefinitely, sometimes for days. When I get it, I put it in the folder with the XML, and then I drop that folder into the input folder of my flow.
That is the issue. I don't want to have to move the folder (too much work, right?) I want the introduction of the artwork (asset) into the folder to be a trigger for Switch, to grab the folder with the XML and the artwork and submit it to my other flow.
I thought about this for a while and here is what I came up with. I am making a separate flow, just to input the job to my other flow. It is also Submit Hierarchy, with specific target credentials. It is set to Leave originals in place, and to NOT ignore updates.
One connection, Switch accepts a folder, with a file count of two. From there I think I can figure out how to get it to my other flow.
The other connection, all other jobs, just goes to the Recycle Bin.
It seems a little odd, Switch will be trashing all these jobs. But from my understanding, it will see the folder with only the XML. It will copy it and trash it. Later on, I drop in the artwork, and Switch will of course see the as an update. Now it meets the criteria, folder with file count 2.
Is this a valid solution? Or is there something better?
The way it works now, I have a folder containing the XML. I wait a while for the artwork, indefinitely, sometimes for days. When I get it, I put it in the folder with the XML, and then I drop that folder into the input folder of my flow.
That is the issue. I don't want to have to move the folder (too much work, right?) I want the introduction of the artwork (asset) into the folder to be a trigger for Switch, to grab the folder with the XML and the artwork and submit it to my other flow.
I thought about this for a while and here is what I came up with. I am making a separate flow, just to input the job to my other flow. It is also Submit Hierarchy, with specific target credentials. It is set to Leave originals in place, and to NOT ignore updates.
One connection, Switch accepts a folder, with a file count of two. From there I think I can figure out how to get it to my other flow.
The other connection, all other jobs, just goes to the Recycle Bin.
It seems a little odd, Switch will be trashing all these jobs. But from my understanding, it will see the folder with only the XML. It will copy it and trash it. Later on, I drop in the artwork, and Switch will of course see the as an update. Now it meets the criteria, folder with file count 2.
Is this a valid solution? Or is there something better?