Link to home
Start Free TrialLog in
Avatar of rvfowler2
rvfowler2Flag for United States of America

asked on

FM - Capture Empty Attachment in Email Script

In the attached code, is there a way to capture the nonexistence of a file, say either by If is empty or by capturing an error?  I can do it for the absence of a file, but not for the absence of a file to attach to an email.  Thanks.
-EmailIssue.JPG
Avatar of challengeday
challengeday
Flag of United States of America image

Hi rvfowler,

I think you're back to using a file manipulation plug-in like Troi: http://www.troi.com/software/fileplugin.html

Either that or address making sure the files are there from a different angle. How do they get there in the first place?
The other thing you can do is use the same technique you used previously by trying to open the file and catching the error, however, if the file is there then it will open.
Avatar of rvfowler2

ASKER

Thanks.  I think that I want to stay away from Troi just because I have to load it on every single desktop.  I wonder if I could code it so if it opens, I immediately close it?

Regarding presence of the file; it is just the case that we do not have one for every record and will not.  Just the nature of the business.
ASKER CERTIFIED SOLUTION
Avatar of challengeday
challengeday
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For #2, please view another question currently open.  I need a complete strategy for dealing with external docs.

Great idea for #1 at least for files that I create via FM.  I'll use that one (though there is one instance where a file is created outside FM).  Awarding points.  
Thanks.