---
title: Email the product data sheet when a product is created - Workflow Documents
description: >-
  A Shopify Flow workflow that renders a product data sheet with Workflow
  Documents when a product is created and emails it to your team as a PDF with
  Workflow Transactional Email.
source_url:
  html: >-
    https://docs.workflow-documents.app/email-the-product-data-sheet-when-a-product-is-created
  md: >-
    https://docs.workflow-documents.app/email-the-product-data-sheet-when-a-product-is-created.md
---

# Email the product data sheet when a product is created

Someone adds a product to the store, and your team (or a retailer, a partner, a translator) gets its data sheet as a **PDF attached to an email**: image, vendor, type, description and every variant with SKU and price. This article builds that workflow in Shopify Flow, step by step, and offers the finished workflow as a file to import.

It is the same pattern as [Email the invoice as PDF when an order is paid](https://docs.workflow-documents.app/email-the-invoice-as-pdf-when-an-order-is-paid.md), for a product instead of an order, and a good first workflow: it needs no customer data, so it runs on a development store right after installing.

**What you need**

- Workflow Documents with a template named **Product data sheet** that renders a product (the starter of that name).
- Shopify Flow.
- [Workflow Transactional Email](https://apps.shopify.com/flow-action-extensions) with a connected sender, for the attachment. Flow's own *Send internal email* can carry the download link in its body, but not the file.

## The workflow

| Step | Setting | Value |
| --- | --- | --- |
| Trigger | **Product created** (Shopify) | no configuration |
| Action | **Generate document** (Workflow Documents) | Product: `product.id` (filled in by Flow), Template name: `Product data sheet`, Language: empty |
| Action | **Send Transactional Email** (Workflow Transactional Email) | see below |

### The Send Transactional Email step

| Field | Value |
| --- | --- |
| To Email(s) | `{{ shop.email }}` (or any address, one per line) |
| Variables (JSON) | see the code below |
| Config page (**Configure Email**) | your sender and the layout *New product data sheet* |

```json
{"product_title": "{{ product.title }}", "sheet_url": "{{ generateDocument.url }}", "sheet_filename": "{{ generateDocument.filename }}"}
```

### The email layout

In Workflow Transactional Email, create a transactional layout with **one attachment from a link** and select it on the step's config page together with a sender:

| Setting | Value |
| --- | --- |
| Name | New product data sheet |
| Subject | `Data sheet: {{ variables.product_title }}` |
| Preview text | The product data sheet is attached as a PDF. |
| Attachment: file name | `{{ variables.sheet_filename \| default: "Product data sheet.pdf" }}` |
| Attachment: link | `{{ variables.sheet_url }}` |

```liquid
<p>Hi,</p>
<p>a new product was added to {{ shop.name }}: <strong>{{ variables.product_title }}</strong>.</p>
<p>Its data sheet is attached to this email as a PDF. You can also <a href="{{ variables.sheet_url }}">download it here</a> (the link works for 7 days).</p>
<p>{{ shop.name }}</p>
```

## Import the workflow instead

The file below is this workflow exported from Shopify Flow.

1. In Shopify Flow, click **Import** and choose the `.flow` file.
2. Open the **Send Transactional Email** step, click **Configure Email** and pick your sender and the layout with the attachment. The file carries the fields of the step, not your sender and layout, so this is always needed once.
3. **Turn on** the workflow.

## Test it

Add a product in your admin and save it. Within a minute the run appears in Shopify Flow under **Recent runs**, the PDF under **Documents** in Workflow Documents, and the email with the attachment in your inbox. Flow's *Test your workflow* mode does not run the Generate document step, so test with a real product.

## Variations

- **Only some products**: add a condition between the trigger and the action, for example on the vendor or a tag.
- **On change instead of creation**: start from *Product status updated* (a draft becoming active) or from one of the product triggers of our [Workflow Trigger Extensions](https://apps.shopify.com/flow-trigger-extensions).
- **Several recipients**: one address per line in *To Email(s)*, or a distribution list of your mail provider.

## Next steps

- [Set up the Generate document action in Shopify Flow](https://docs.workflow-documents.app/set-up-the-generate-document-action-in-shopify-flow.md) - every field of the action.
- [Branding your documents](https://docs.workflow-documents.app/branding.md) - logo, colors and fonts of the data sheet.
- [Document history and downloads](https://docs.workflow-documents.app/document-history.md) - what your workflows generated.
