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.

Sending SuperContainer file as Email attachment

Featured Replies

hi -- i'm trying to write a script to email an attachment of a file that I stored with Supercontainer. if the table related to the document I have stored is called Document, here is my script:

Set Variable [ $result; Value:SCDownload("Document/" & DOC::(_pk_DocumentID ; Get (DesktopPath)) ]

The I use the Send Mail via SMTP Server step and I write this in the Attachment section:

Attachment: “file:$result”

Any ideas on what I doing wrong?

the file name is prob not the same as the path to the file in SC once the file is saved to the desktop you should give the file name. and use that name in connection with the desktop path. for your attachment.

Remember SC saves files in a folder that matches your pk_DocumentID and the real file xyz.jpg is inside that folder - when it saves to the desktop you need to target the real file.

I've just used native export field contents if the field is a calculated container field using the SC Plugin.

  • Author

Interesting. I thought SCDownload function put it in a temporary location on User's computer and then you could just send it with that name. How do I change its name?

Here is a script example that will do this for you.

Set Variable [$baseurl; Value:SCSetBaseURL("http://yourhostIP/yourdirectory")]

Set Variable [$filepath; Value:"your/local/download/directory" & "yourdownloadedfile.name"]

Set Variable [$calldownload; Value: SCDownload(SC_test::kf_yourkeyfield; "your/local/download/directory")]

Send Mail [send via SMTP Server; No dialog; To: "[email protected]"; Subject "email subject"; Message: "test email message body"; "$filepath"]

If you do not specify a download directory FileMaker will save the file in your system's temporary folder.

Create an account or sign in to comment

Important Information

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

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.