Solved

FM - Capture Empty Attachment in Email Script

Posted on 2011-02-16
6
417 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:rvfowler2
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:challengeday
ID: 34920286
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?
0
 
LVL 4

Expert Comment

by:challengeday
ID: 34920314
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.
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 34922045
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Accepted Solution

by:
challengeday earned 500 total points
ID: 34922110
Once the command leaves FM there's no communication back to FM. However, yes, you might be able to send an event to trigger a batch file (or VBScript) to close the file.

Other creative ways to address the issue:
1) Keep track of which records have a file with a checkbox, then simply check the value of the checkbox.

2) Store the files themselves in an FM container on the record itself.

2) Having dummy files for records that don't have one, like the "this page intentionally left blank." It could be a standard document and it might even have useful information as an attachment.

0
 
LVL 2

Author Comment

by:rvfowler2
ID: 34926115
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.  
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 34926119
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WordPressFilemaker sync support 9 895
Convert Large XML files to CSV 5 1,219
Filemaker Pro 14 Server - Webdirect - Insert from device 2 109
Simple Search Script in FileMaker 4 35
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now