I am looking for some help with an onadd dispatch.
I currently have a dispatch that runs when a file is added to the vault. After the add operation, has the user input variables that write to the file card. Then these same variables rename the file.
This all works great and as intended.
I would now like to add the functionality to have an updated version of this file brought into the vault through the same dispatch, but if the same file name exists on the rename function of the dispatch, the dispatch would save over the original file as a new version.
My current dispatch gives an error that the file name already exists, and does not give me the option to save over the file. When I click through the error it drops the file in the vault with a "_1" at the end of the renamed file.
any and all ideas are greatly appreciated!