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.

Send email & ".pdf" attachment - "filepath" Issue

Featured Replies

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]

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)

I use Get (TemporaryPath) so as to not put the pdf on the desktop.

  • Author

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

Thanks so much for spending the time on this issue.

  • Author

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

I appreciate your help!!

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.