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

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

Recommended Posts

Posted

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.

 

Posted

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?

Posted

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

Posted

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]

Posted

Whooaaa, Thanks, 

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

Posted

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!

This topic is 4162 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.