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
- You need the Shopify Flow app.
- Emails sent by Foliant depend on your plan. See Plans and what’s included.
Step 1: Set up the email in Foliant
- Go to Delivery and select Add delivery.
- Choose the Template and Foliant emails the PDF.
- Under Send when, choose A Shopify Flow workflow sends it, then select Add delivery.
- On the email’s page, set Who gets it, the Email and any conditions, and save.
- Under When, find the Template ID and select Copy ID. It stays the same when you rename the template.
Step 2: Add the action in Shopify Flow
- In Shopify Flow, create a workflow and choose a trigger (such as Order paid).
- Add any conditions.
- Add the Foliant action Email order document.
- Paste the ID into the action’s Template ID.
- Optional: enter Send to to send to that address instead of the email’s recipients, for example an accounts payable contact.
- 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.