Hello,
I have a flow that processes hundreds of files.
On activating the flow, I would like to check for a log file first, if it exists, process the many files, if it does not exist, do not process the many files and send an email.
I do not know how to do this. Can anyone give me some suggestions?
Thanks
How to stop a flow if file does not exist
Re: How to stop a flow if file does not exist
I tried it but i cannot get it to work with network path.
I wrote a script that is working.
But I want to stop the flow completely if the file does not exist.
I wrote a script that is working.
But I want to stop the flow completely if the file does not exist.
Re: How to stop a flow if file does not exist
If you're wanting to stop the flow like you do in the Switch Designer, you could use the Switch Web Services REST API: https://cdn-www.enfocus.com/manuals/Dev ... s-StopFlow
Re: How to stop a flow if file does not exist
It does work with network paths, you have to write them correctly as an inline value in the properties.
Re: How to stop a flow if file does not exist
Do you really want to stop the flow? If you do it will have to get started again one way or another, and how are you going to do that?
I think you would be better off with the "Wait for asset" app. As the name suggests jobs will be held in the flow if a file is missing and when the file all of a sudden appears the jobs continue because the flow is still active; no action required.
https://www0.enfocus.com/en/appstore/pr ... -for-asset
There is also a + version:
https://www0.enfocus.com/en/appstore/pr ... or-asset-0
I think you would be better off with the "Wait for asset" app. As the name suggests jobs will be held in the flow if a file is missing and when the file all of a sudden appears the jobs continue because the flow is still active; no action required.
https://www0.enfocus.com/en/appstore/pr ... -for-asset
There is also a + version:
https://www0.enfocus.com/en/appstore/pr ... or-asset-0