March 3, 200916 yr 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]
March 3, 200916 yr 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)
March 4, 200916 yr Author Your solution works great ! I could not see the forest for the trees ! Thanks so much for spending the time on this issue.
March 4, 200916 yr 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