Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Email and PDF Function

Featured Replies

Let me ask if there is any way to do this. I have a script where we (prior to upgrading to 9...we had 7), had to print to PDF then manually attach to an email we generated from filemaker.

Now I would like to, all in one script, create the PDF in filemaker and a formatted email with filemaker data.

The problem is the PDF function has an email feature but it doesn't give you any options like the send mail script function.

I need to have data populated in the email and attach the PDF...but, alas, I'm lost. Thank you i advance

You can use a combo of the 2 steps. First specify the file path in a script Variable step. In FileMaker 9 you can use the new Get ( TemporaryPath ), if you don't want to see the PDFs. They will then be deleted when you restart the machine (on a Mac anyway, and I imagine the same for Windows, hence "temporary"). Otherwise put them in a folder on the Desktop, using Get ( DesktopPath ).

Set Variable [ $filepath; "filewin:" & Get ( TemporaryPath ) & "some file.pdf" ]

# You would likely get "some file.pdf" from a FileMaker field, not hard coded text (so it wouldn't have quotes)

Save Records as PDF [ $filepath ]

Send Mail [ ... ... ; attachment; $filepath ]

is it possible for me to add TWO attachments to an email?

For example, a merge file and a pdf file?

Thanks,

Michael

Not with native FileMaker. It can be done via AppleScript. In fact, you can create a folder, put both in it, then zip the folder, then attach that. But that's a bit more complex.

  • 2 weeks later...
  • Author

Thanks Fenton, that worked! I also stumbled on the fact that the Business Productivity Suite (BPS) that FIlemaker created has this in their script for the 'email invoice' button

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.