Skip to main content

Send PDFs from Shopify Flow

If the order events Foliant offers don’t fit, a Shopify Flow workflow can decide when an email goes out. You set up the email in Foliant as usual, choose A Shopify Flow workflow sends it, and add Foliant’s Email order document action to your workflow.

Before you start

Step 1: Set up the email in Foliant

  1. Go to Delivery and select Add delivery.
  2. Choose the Template and Foliant emails the PDF.
  3. Under Send when, choose A Shopify Flow workflow sends it, then select Add delivery.
  4. On the email’s page, set Who gets it, the Email and any conditions, and save.
  5. Under When, find the Template ID and select Copy ID. It stays the same when you rename the template.
On the timeline, the email shows under Sent by Shopify Flow.

Step 2: Add the action in Shopify Flow

  1. In Shopify Flow, create a workflow and choose a trigger (such as Order paid).
  2. Add any conditions.
  3. Add the Foliant action Email order document.
  4. Paste the ID into the action’s Template ID.
  5. Optional: enter Send to to send to that address instead of the email’s recipients, for example an accounts payable contact.
  6. Turn the workflow on.

Good to know

  • There’s no Wait for Flow emails: use Flow’s own wait step instead.
  • The email must be switched on. If no active Flow email uses that template ID, the action fails in Flow and says so.
  • Flow emails aren’t skipped for cancelled orders: the workflow chose to send.
  • The email’s conditions under Only for some orders still apply.
  • Flow emails show in the email history with the event Shopify Flow.
  • Shopify sends no email of its own with this action, so there’s no double-email warning.