Workflow solution for checking existence of file on the server
We have a workflow which runs from the feature description of a point. It checks a field value, and opens a link to a new page with a document based on the field value. In some cases I need to check for the existence of the file on our server (not one-for-one match between files in the table and files on the server). If the file does not exist on the server, I want to stop the workflow from proceeding.
How do I do a file.exists to my virtual directory? I am struggling with how to code this inside my workflow.
Thanks
0
-
There is a method in the .net io.file class called "Exists" which you can probably use as long as your workflow machine can view the target virtual directory. You could instead use a webrequest workflow activity to check for a 404 agains the url before you provide it to the user. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar