How do I make a decision based on if a folder exists in my FLow.
How do I make a decision based on if a folder exists in my FLow.
I am placing a file into a job using Set Hierarchy Path, but If the job doesn't exist I don't want to place it. Because currently, the Set Hierarchy path just places it and creates any missing folders, and that would throw off my workflow. Any suggestions or other things I can try?
Re: How do I make a decision based on if a folder exists in my FLow.
You can try to inject it (or https://www.enfocus.com/en/appstore/product/inject-lite) to see if its there before you do that operation
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Re: How do I make a decision based on if a folder exists in my FLow.
Thank You. That does seem like it should solve my problem. I did install Inject Lite and am using it, but I am getting an error in my flow- "Error in line 101 of script : Error. Trying to access undefined member '1'". Any idea what may have caused this?
Re: How do I make a decision based on if a folder exists in my FLow.
Not really sure. Can you post a screenshot of the app/script properties you are using?MichaelG wrote:Any idea what may have caused this?
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Re: How do I make a decision based on if a folder exists in my FLow.
Here are the properties of the app:
Re: How do I make a decision based on if a folder exists in my FLow.
I think it might be that preceding "\\". Is there another way it could be addressed? like "file:///" or "/Volumes/whatever"?
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Re: How do I make a decision based on if a folder exists in my FLow.
\\ - double backlash is for a network path.gabrielp wrote:I think it might be that preceding "\\". Is there another way it could be addressed? like "file:///" or "/Volumes/whatever"?
If the file sits on a network location - pointing to it with double backlash or going per Network and the actual device on the network, will always result in the path starting with '\\'
Correct me if I am wrong.
Re: How do I make a decision based on if a folder exists in my FLow.
Every backslash has to be escaped, so your initial \\ has to be written \\\\
Re: How do I make a decision based on if a folder exists in my FLow.
I got it to work, it ended up needing to be the Forward slash instead of the backlash (//workserver/work/jobs/) which ended up working. It must have something to do with the way Inject Lite uses it, because it works fine as \\workserver\work\jobs\ in Switch. Thanks for your help.
Re: How do I make a decision based on if a folder exists in my FLow.
Sorry for the hassle but thanks for posting the solution.MichaelG wrote:I got it to work, it ended up needing to be the Forward slash instead of the backlash (//workserver/work/jobs/) which ended up working. It must have something to do with the way Inject Lite uses it, because it works fine as \\workserver\work\jobs\ in Switch. Thanks for your help.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Free Switch apps: open-automation @ Enfocus appstore
Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.