AnsweredAssumed Answered

FileMake, check if PDF Exists in a directory before upload

Question asked by tannercypret on Jun 13, 2018
Latest reply on Jun 15, 2018 by fmpdude

I have a script that uploads PDF files to a container field. I have 27,000 records and 22,000 PDF files. This means i have 5,000 more records than PDF files. The problem with my script is that when it encounters a record that doesnt have a matching pdf it throws a file not found error and forces me to click through a bunch of dialog windows. I dont want to have to manually do this 5,000 times. I want it to move to the next record if it cant find a matching PDF. Is it possible to write an if statement like if(filefound==true){insert.File}else {next.record() } or some other work around?

 

Outcomes