I have a functional workflow that does this:
- Looks to see if an item (a file in a document library "A") has the column "Ready" checked off (=Yes)
- If Ready=Yes
- Copies the file from "A" (PrepLib) to document library "B" (ReadyLib)
- Deletes the file from "A"
It works fine, but I know I need to do some validation
- Check that a file with that name wasn't already in B before I allowed the copy.
- Validate that the file was successfully copied into B before I delete it from A.
How do I do this? I think I want to:
Before the Copy: check for the Title of the current item (in A) and see if exists in B
- if YES, stop the workflow, and send a message
Before the Delete: check for the Title of the current item in B and see if exists in B
- if YES, let it flow to the Delete step
- if NO, stop the workflow, and send a message
I don't know which of the workflow actions to choose, or how to configure. I'm considering "Query List" or "Request data".
I've been researching for this answer, and haven't been able to find an example.
Thanks for taking a look and offering help!