Email uploaded account files with a workflow
Email your team the file a customer uploads to their account, such as a tax exemption form, W-9 or resale certificate, using the Attribute changed trigger and a Send email attachment.
Set up a workflow that emails your team the file a customer uploads to their account, such as a tax exemption form, a W-9 or a resale certificate, with the file attached. The Attribute changed trigger starts the workflow, and Send email attaches the file.
Where to find it: Workflows > Create New Workflow. Part of Workflows Overview.
Use it to:
- Get a customer's tax exemption certificate in your team's inbox as soon as they upload it, without checking each account.
- Collect yearly re-uploads, such as an updated resale certificate, and review each one when it arrives.
- Start any account workflow when a custom account attribute changes, such as a Yes/No "Approved for terms" flag or a dropdown value.
Before you startYou need a File account attribute that customers can upload to. If you already have one, such as Tax Exemption Form, skip to Step 2. You also need access to Workflows (store owners, full access users, or a team role that includes the Workflows page).
Step 1: Create a File account attribute
- In the Zoey Admin, go to Customers > Attributes and open the Account tab.
- Click Create New Attribute.
- Enter an Attribute Name, for example
Tax Exemption Form, and set Attribute Type to File. Add Help Text if customers need instructions, such as which form to upload. - Click Save. The form checkboxes under Forms appear after this first save.
- Under Forms, tick Edit Account Form (Store Frontend) so customers can upload the file in Account Manager. Tick Account Registration Form (Store Frontend) too if new customers should upload it when they register, and Account Create / Edit / View Form (Admin) so your team can see and replace it on the account page.
- Click Save.
See Customer Attributes for every attribute setting.
Step 2: Build the workflow
- Go to Workflows > Create New Workflow and start from scratch with a blank Account workflow.
- Name the workflow at the top, for example
Email tax exemption forms. - Drag Attribute changed from Triggers onto the trigger card, or click the trigger card and choose Attribute changed in Starts when.
- In Attribute, choose your File attribute. It's listed as Account: followed by the attribute name and its code, for example Account: Tax Exemption Form (at_tax_exemption_form).
- Leave Changed to empty. File, text and date attributes start the workflow on any change.

- Click the + below the trigger and choose Send email (or drag Send email from Actions onto the +). Its settings open on the right. To open them again later, click the Send email card.
- Set Send to to Specific email addresses and enter your team's addresses in Email addresses (comma separated), for example
[email protected]. - Enter a Subject and Message (HTML allowed). Variables fill in the account, for example:
- Subject:
Tax exemption form uploaded: {{var account.name}} - Message:
<p>{{var account.name}} uploaded a tax exemption form. It is attached.</p>
- Subject:
- In Attach file from account attribute (optional), choose the same File attribute. The Send email card then ends with "+ file from" and the attribute name.

- Tick Allow re-enrollment at the top of the page, so the workflow runs again each time the same account uploads a file (for example, a yearly renewal). With it off, each account goes through the workflow once.
Step 3: Test it and turn it on
- Click Save. The workflow stays Inactive, so nothing runs yet, and you can leave the page without losing it.
- If no account has a file in this attribute yet (a new attribute starts empty), upload one to a test account: open the account, and on its Overview tab scroll to Attributes at the bottom of the left card. Click Show … empty fields, click Attach File under your attribute, choose the file, and click the green check.

- Open the workflow again, click Test, search for an account that has a file uploaded, and click Run test. The result says Would send with the recipients and Would attach with the file name and size. Nothing is sent and nothing changes. For an account without a file, it says No file attached: and why.
- Turn the Active toggle on.
- Click Save.

From now on, when a file is uploaded to that attribute, Zoey queues a run and sends the email, usually within a few minutes. Check each run in Run History (see Create and Test a Workflow).
What starts the Attribute changed trigger
The workflow starts whenever the attribute's value changes, wherever the change is made:
| Where | Example |
|---|---|
| Zoey Admin account page | Your team uploads or replaces the file on the account (Overview tab, Attributes at the bottom of the left card). |
| Storefront Account Manager | A customer uploads the form under their account information. |
| Storefront registration | A new customer uploads the form when they register. A new account created with a value counts as a change. |
| API and imports | An integration or a CSV / Data Mapper import sets the value. |
Good to know:
- A file with the same name counts. If a customer replaces
W9.pdfwith an updatedW9.pdf, the workflow starts again (with Allow re-enrollment on). - Changes made by workflows don't start workflows. If another workflow's Update account attribute step changes the attribute, this workflow doesn't run. This prevents loops.
- Only account attributes are listed: your custom attributes, plus a few account settings stored as attributes, such as Minimum Order Qty. Built-in fields such as the account name, customer group or type have their own triggers (Account group changed, Account type or status changed). Without any custom account attribute, Attribute changed doesn't show.
- Yes/No and dropdown attributes can be limited with Changed to, for example start only when Approved for terms changes to Yes. Leave it empty to start on any change. An empty Yes/No counts as No.
How the attachment works
- Up to 10 MB. The file the account uploaded is attached with its original file name.
- The email always sends. If the account has no file, the file is over 10 MB, or it can't be attached, Zoey sends the email without it. The run log in Run History starts with "No file attached:" and says why, for example that the account has no file or that the file is over the limit.
- Any recipient works. You can attach the file to an email to the account's primary contact or account manager contacts too, for example to send a customer a copy of what they uploaded.
- Only File attributes are listed in Attach file from account attribute (optional). The option shows only when your store has at least one File account attribute.
Tax forms contain sensitive informationSend these emails to a team mailbox you control, not to a large list. The file goes out as an email attachment, so anyone who receives the email can open it.
Ask Zoey AI
- "How do I get an email when a customer uploads a tax exemption form?"
- "Why didn't my workflow email include the uploaded file?"
Related articles
Updated about 1 hour ago
