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.
I'm not sure if this is possible. If it were, you would need to have the existing file checked out before it would even allow you to overwrite it. If you try to check out the file first, you might get past the error. I don't have time to test this so I'm suggesting something you can try.