Skip 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.

mailto script step

Featured Replies

Hi,

 

not sure I am in the correct place - sorry moderator if you have to move this post around.

 

I made a simple script mailto, passed all the steps to find out that to get an attachment FMP12 is looking for a file path.

The database stores PDF files, I want to be able to share throughout email.

Is there any trick to go around and send the PDF stored in the PDF field as an attachment to the email...?? 

Storing the PDF in a folder and only the location into the PDF Field has the advantage to keep the database slim, but any wrong manipulation of the folder can ruin work, and oblige to rebuilt all the file path ..!!!

On other hand, if I want to pass the database to iPad, I'll be obliged to pass the "store folder" too... I have no iPad to check if the file path becomes a problem....

 

I am kind of stock here and any help will be appreciated.

 

I don't fully understand your question or the problem that you are trying to solve. Are you generating the PDF that you want to email in FileMaker or do you want to email an existing PDF that is being stored within a container field?

  • Author

Hi,

 

I have PDF files stored into a container field in the database, I would like to have the file stored into the field attached to the mail I send..

I am looking for a trick to go around the FMP process which look for a file path to get the file as attached.. 

Any help will be very much appreciated

Here is a solution by AHunter3:
 
You would first set a variable, let's call it $AttachmentPath, to GetValue (GetAsText (YourContainerField); 2) and then do this:

Send Mail [To, Subject, Body set as you normally do; specify attachment as $AttachmentPath]

If the container field file is stored IN FileMaker (i.e., not "as a reference") you would need to export it first, using Export Field Contents and specifying the full path to export it to.  The file NAME will usually be returned if you query GetAsText (YourContainerField) -->  "myfile.xls"  so you'd set your $AttachmentPath variable to Get (TemporaryPath) & GetAsText (YourContainerField) and then do this:

Export Field Contents [no dialog, YourTable::YourContainerField, to $AttachmentPath]
Send Mail [To, Subject, Body set as you normally do; specify attachment as $AttachmentPath]

  • Author

Whooaaa, Thanks, 

I am going to try this and let you know what happened..

Yes, please do, I am curious to know if it works from an iPad.

 

If you don't have access to an iPad and want me to test it for you please send me a demo file.

 

Good luck!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.