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 Attachments

Featured Replies

I'm trying to add pdf files as attachments to email messages.

The name of the file is in a field called "RFI File"

I tried to do this: filewin:/j:/0010/eng/ca/<<RFI File>>

but it didn't work. Got any other ideas?

Thanks in advance for responding!

It's not going to work that way. You have to use the same file name each time. So use the Send Event script step to copy the file given in the field RFI File to the chosen default file name, for each record. Then email that.

  • Author

Thanks for responding. Your solution sounds simple enough but I'm not able to get it to work. I tried this,

SendEvent ["aevt";"odoc";RFI::RFI EMail Attachment]

Save a Copy as ["RFITemp.pdf"; copy]

and ended up with an unusuable pdf which appears to be a copy of the databse and not the original pdf. To me, SendEvent can only be used to open an application or print the file. Am I way off base?

Thanks again.

No, Save a Copy as is for FM files. Do a search in the forums for Send Event; I've shown several specific examples of how to set up a batch file to carry out the copy.

  • Author

I searched and I searched and all I could find was one post about %1 in a batch file and "cmd" to open a dos shell. Could you provide a link to one of your past examples?

Before you and I spend too much time on this, can FileMaker rename a file stored on the network, e.g. j:/0010/eng/ca/RFI001.pdf to j:/0010/eng/ca/RFI_Temp.pdf? But keep in mind that "/j:/0010/eng/ca/" is in a field called NETWORK and "RFI001.pdf" is in a field called FILE.

Your help is much appreciated.

use the troi file plugin available at

http://www.troi.com

Stu

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.