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

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

Recommended Posts

Posted

Setup: FMP (v9) server & 5 clients

Objective: To send a Customer an email with an Invoice as a ".pdf" attachment.

Problem: When the script is performed locally on my machine it works great, however, when executed on the remote client machine it will not work. It must be a "get" filepath" issue ? The "Get (File Path)" script step is supposed to function the same on the server & client... but does not work or I am doing something wrong. It apparently is trying to place the ".pdf" file via the chosen path and can't...

Script Steps:

Set Variable [$einvoice.pdf; Value:Get (File Path) & "einvoice.pdf"]

Save Records as PDF [Restore; No dialog; "$einvoice.pdf"; Records being browsed]

Send Mail [send via E-mail Client; To: Invoice::Email Address; Subject: "Company Invoice Number - "&invoice::Inv_Number;"$einvoice.pdf"]

Close Window [Current Window]

Posted

You cannot use the Get (FilePath) function here because that is the path to the files on the HOST (ie. fmnet:). The clients must generate the PDF locally so....

Try using

"filemac:" & Get (DesktopPath)

Posted

Your solution works great ! I could not see the forest for the trees !

Thanks so much for spending the time on this issue.

Posted

Thank you for the help. Your recommendation works great and I can see where this has possibilities.

I appreciate your help!!

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