I’m using Zapier to store PDFs that are generated by Gravity Forms and Gravity PDF.
The Zap I have set up checks to see that the correct folder and subfolders exist and then uploads the PDF.
All good so far.
Is there a way I can check to see if the file name already exists and if so append or increment the file name as the same user will complete the form several times and we want to be able to see at a glance from the file name what the order of submission was.
- Submission 1 uploads the PDF with the original file name - John Smith-FrenchLesson101.pdf
- Submission 2 uploads the PDF with the original file name + 1 John Smith-FrenchLesson101-01.pdf
- Submission 3 uploads the PDF with the original file name + 1 John Smith-FrenchLesson101-02.pdf
- Submission 4 uploads the PDF with the original file name + 1 John Smith-FrenchLesson101-02.pdf
and so on
Best answer by christina.dView original