I've got a simple approval workflow that uses an InfoPath form through SharePoint. The last step of the workflow saves the xml to the form library for record-keeping. The requirement is that these forms are stored in a folder for the current year.
In my process I added a SharePoint document event to create that "2013" (used the year function) folder, and the document will save there appropriately the first time. The problem is that the next time the workflow runs, it fails because that folder already exists.
My question should be pretty simple; I'm assuming I'll have to use code to create the folder, checking to see if it already exists. I haven't had much luck searching for that code or scenario. Does anyone here have an easy way to achieve this? I'd also be open to alternatives without using code.
Thanks in advance.