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

Featured Replies

Through a scripted routine a client system generates a new contract and exports as a pdf as a temporary file (Get(TemporaryPath).  It then creates an invoice, exports as PDF and appends this to the contract and finally it sends the whole pdf out via email.

This year the client would like to have a sales related pdf that is not generated in Filemaker be the first document in the process, appending the contract to that PDF and finally the invoice to that, so that the client receives one pdf that first has the sales piece, with the contract appended and finally the invoice appended.

This all happens in a looping routine, moving on to the next client contract after the first one is sent.  The issue is that FMP modifies the first PDF by appending to it.  Subsequent contracts are appended onto the same file so the second customer gets the first customer's contract and invoice as well.

Is there a way to do this without having an ever increasing document?

Thanks in advance for any suggestions.

Obviously you need a fresh copy of the "sales related pdf that is not generated in Filemaker" for each customer. You did not say where it comes from, so I am not sure what to suggest next.

  • Author

The salesy document is a polished document that is produced by their marketing department.  If it were a simpler document I would implement it in Filemaker and start there, but its richness makes it seem ill-suited to Filemaker.  I suppose that I could do that if another method isn't an option.

My attempted solution was to just put the file on the desktop of the machine that sends the contracts and coded Save as PFD script step to append to that PDF.

Thanks for your thoughts on this.  I appreciate it.

7 hours ago, datalink said:

My attempted solution was to just put the file on the desktop of the machine that sends the contracts and coded Save as PFD script step to append to that PDF.

You should insert the file into a container field (say in a one-record Preferences table). Then have your script export the file to a known location, append the contract and the invoices of one client to it, send the resulting file and repeat. Test this to see if pauses are required so that you do not overwrite the resulting file before it is sent.

 

Edited by comment

  • Author

This was a great suggestion.  I exported to the temporary path and appended the additional documents to it.  A great suggestion.  Thank you so much!

Create an account or sign in to comment

Important Information

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

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.