Blog

Save Generated PDFs to a Record and Keep a Document History with Quickbase Pipelines

Use the native Generate Document and Upload a File pipeline steps to save a template PDF into a record's file attachment field, or keep every generated document as its own record in a child table so nothing is overwritten. No API-request workaround needed.

A Quickbase quote record with its saved PDF and a list of previously generated documents

Two questions come up again and again in the Quickbase community about document templates. The first: "I can generate a PDF from my template, so how do I save it to a file attachment field on the record?" (Document creation - Save PDF to field in record). The second: "How do I see every document we've generated for a record, not just the latest one?" (View Document History).

For a long time the answers were workarounds. You could chain two API requests in a pipeline (generate the document, then write it back to the record as base64 in a JSON body you built by hand), or you could buy a third-party add-on. The API approach worked, but it broke easily. A common way to get stuck was the "This field contains invalid jinja references" error while building that JSON body.

In October 2025 Quickbase added a native Generate Document step to the Quickbase channel in Pipelines (release note). Now both questions have a short, supported answer:

  • Pattern A: save the latest PDF into a file attachment field on the same record.
  • Pattern B: keep a full history by saving each PDF as its own record in a child table.

Pattern A and Pattern B pipelines side by side

Before you start

  • Plan. Document templates and the Generate Document step need a Business or Enterprise plan. Quickbase's help says a Team plan attempt is blocked.
  • A working document template on the table you want documents for. If it already works with the Generate button on a record, you're set.
  • A Pipelines connection to Quickbase. The Quickbase channel connects with a user token. The token has to be assigned to the app, and the token's user needs permission to read the records and edit the file attachment field.
  • Template edits take a while to show up. Per the help docs, allow up to 15 minutes after you change a template before pipeline-generated documents reflect it. Don't assume the pipeline is broken if your first test still has the old layout.
  • File size. Upload a File handles attachments up to 71 MB, which is far more than a typical generated PDF.

The examples use a Quotes table with a template called "Customer Quote". Swap in your own table and template.

How the two steps fit together

Two Quickbase channel steps do all the work:

  1. Generate Document (in the Documents group) builds the file from your template for one record. Its output is a file URL (Quickbase calls it a file transfer handle URL) that later steps in the pipeline can use. It doesn't save the file anywhere on its own.
  2. Upload a File (in the Attachments group) takes a file from a URL and puts it in a file attachment field on a record you choose.

Pass the URL from the first step into the second and the PDF ends up on a record. The only real difference between Patterns A and B is which record that is.

Pattern A: save the PDF to a field on the same record

Use this when you only need the current version of the document on the record, like "the quote PDF" or "the signed work order".

1. Add the fields

On the Quotes table, add:

  • Quote PDF: a File Attachment field. The document goes here.
  • Generate PDF: a Checkbox field. Users tick it when they want a fresh PDF.

A checkbox trigger is optional, but I recommend it. Without one, a trigger like "every time the record changes" makes a new PDF on every edit, and that adds up fast.

2. Create the pipeline and the trigger

  1. Open Pipelines and create a new pipeline.
  2. From the Quickbase channel, add a record trigger for the Quotes table. Use Record Updated for the checkbox approach (or Record Created if you want a PDF as soon as the record exists).
  3. Add a condition so it only runs when Generate PDF is checked.

3. Add Generate Document

  1. Add the Quickbase step Generate Document.
  2. Pick the Quotes table and the Customer Quote template.
  3. For the record, map Record ID# from the trigger. This makes the step generate the document for the record that fired the pipeline.
  4. Choose the format: PDF or Word.
  5. If the step lets you set a file name, use the data picker to build a readable name from the record, like the quote number. (A 2026 fix made the file name in the step output include the right extension for the format you pick.)

4. Add Upload a File

  1. Add the Quickbase step Upload a File.
  2. Pick the Quotes table and the Quote PDF field.
  3. For the record, map the same Record ID# from the trigger.
  4. For the file URL, map the URL output of the Generate Document step. Use the step's output field from the data picker. Don't type a link in by hand.

5. Reset the checkbox (recommended)

Add Update Record on the same record and set Generate PDF back to unchecked. Then the box can be ticked again next time, and the pipeline can't loop if the trigger is broader than you meant.

6. Test it

Open a quote, for example Quote #2187 for Sarah Lee, tick Generate PDF and save. Give it a moment, then refresh. You should see Quote-2187.pdf in the Quote PDF field and an unchecked box. If nothing happens, open the pipeline's Activity log. It shows which step failed and why. The usual causes are a permission problem with the connected token or a template that hasn't refreshed yet.

About overwriting: every run replaces what's in the Quote PDF field. If the field keeps file revisions, the older versions are still there, but you have to open the attachment's revision list to find them. If people need to see past documents at a glance, use Pattern B.

Pattern B: keep a document history in a child table

Use this when someone asks "what did we send on the 12th?" or "who generated this version?". Each generated document becomes its own record, so nothing ever gets overwritten.

1. Create the Generated Documents table

Create a new table, Generated Documents, with these fields:

  • Document: File Attachment
  • Related Quote: the reference field from a relationship where one Quote has many Generated Documents. Create the relationship from the Quotes side so Quickbase adds the reference field for you.
  • Requested By: User (optional; who ticked the box)
  • Notes: Text (optional; for example "Revised pricing")

You get Date Created and Record Owner with every Quickbase record, so you already have a timestamp for each document.

2. Build the pipeline

  1. Trigger: same as Pattern A. Record Updated on Quotes, with the condition Generate PDF is checked.
  2. Generate Document: Quotes table, Customer Quote template, Record ID# from the trigger, PDF or Word.
  3. Create Record: in Generated Documents. Set Related Quote to the trigger's Record ID#. Optionally set Requested By to the user who last modified the quote and Notes to whatever helps.
  4. Upload a File: table Generated Documents, field Document. For the record, map the Record ID# of the record you just created in step 3 (not the quote's ID). For the file URL, map the URL output from Generate Document.
  5. Update Record (recommended): set Generate PDF on the quote back to unchecked.

The step most people get wrong is step 4: the upload has to target the new Generated Documents record. If you point it at the quote, you'll get an error or the file ends up in the wrong place.

3. Show the history on the quote form

  1. Open the Quotes form in edit mode.
  2. Add the Generated Documents embedded report that the relationship gave you (or a report of your own on that table).
  3. Show Date Created, Requested By, Notes and Document, sorted by Date Created, newest first.

Now every quote shows its whole document trail right on the form:

Date CreatedRequested ByNotesDocument
Nov 24, 2026Mike ChenRevised pricingQuote-2187.pdf
Nov 19, 2026Sarah LeeAdded install lineQuote-2187.pdf
Nov 12, 2026Mike ChenFirst draftQuote-2187.pdf

Each row opens the exact file that was generated that day.

Want both?

You can. Add one more Upload a File step to the Pattern B pipeline that also puts the same URL into Quote PDF on the quote. The latest file sits right on the record, and the full history sits underneath it.

Tips and gotchas

  • Keep the trigger narrow. A checkbox, or a status change like "Status changes to Sent", keeps you from piling up hundreds of near-identical PDFs.
  • Map the URL, don't rebuild it. The whole point of the native step is that you no longer write JSON or base64 by hand. If you see jinja errors, you're probably still on the old API-request approach.
  • Wait out template changes. After you edit a template, give it up to 15 minutes before you judge a test.
  • Permissions follow the token. The pipeline runs as the connected token's user. That user needs to see the record and edit the attachment field, and in Pattern B also add records to Generated Documents.
  • Old documents stay as they were. Changing the template doesn't touch PDFs that were already saved. That's what you want for a history, but keep it in mind when someone asks why an old quote looks different.
  • Already using an add-on? If you've used a third-party add-on to store documents for years, it doesn't have to go away overnight. For new builds, the native steps mean one fewer thing to license and maintain.

Wrap-up

Generate Document makes the file and Upload a File puts it where you tell it. To keep the latest document on the record, point the upload at the same record (Pattern A). For a history, create a child record first and point the upload at that (Pattern B), then show the child table as an embedded report on the form. Both run on a Business or Enterprise plan, and neither needs the old API-request workaround.

The community threads that prompted this guide: Document creation - Save PDF to field in record and View Document History.