Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Emailing Multiple Records


This topic is 7042 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there a way in FM7 Pro to right a script that will email all the records with matching data in a field to one email address? Right now I have set up to do one record at a time, but that could be tedious!

Posted

One possibility is to first perform a find by your criteria, then export records to XML with an XSLT stylesheet that converts to HTML on a temporary file on the hard disk, and then attach the HTML to your e-mail without any text in the body. Email clients like Outlook will interpret the HTML attachment as the body of the email. You can do arbitrarily complex processing over sets of data using XSLT --- it's about as powerful as Filemaker layout-based reports.

The hard part in doing this is writing the XSLT stylesheet; I recommend starting with one of the sample stylesheets that come with FMP7 (the "summary report" one is good) and modifying it to suit your needs.

Posted

Thanks for the suggestion.. I did do something with exporting it to a CSV file, then attaching, but I hoped there could be an easier method. OH well!

Posted

You could assemble all the record data either using a loop and appending to a global field, or using the Copy All Records script step. Then email that.

This topic is 7042 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.