Zapier: Job Status Changes To Send Out Emails

In this article

Send an automated email when a job reaches a status you choose, such as In Production. This Zap uses a trigger to start the workflow, a filter to check the job status, and an action to send the email.

Choose one of two ways to send the email:

  • Send through YoPrint: Sends an official sales-order message using an email template configured in YoPrint. YoPrint delivers the message to the order's message participants who have email turned on. This action is made for sales orders, and the filter keeps quote jobs out.
  • Send through Gmail: Sends an email directly from your connected Gmail account. You write custom email text in Zapier and send it to the order's message participants who have email turned on.

Both options share the same trigger and filter. You build only one of the two senders.

A job status change passes the status filter, then either YoPrint sends a template email for sales orders, or Gmail sends a custom email after Formatter prepares the recipients

Set up the trigger and filter first. Then follow the section for the sender you prefer.

Watch the video walkthrough. Follow the steps below for the current YoPrint connection details.

Before you start, have these items ready:

  • A YoPrint team with an active subscription or trial on a plan with API access, such as Pro or higher.
  • A Zapier account on a plan that supports filters and multiple steps. The YoPrint route requires three steps (trigger, filter, action), and the Gmail route requires four steps (trigger, filter, formatter, action). Free Zapier accounts only support two steps.
  • Your YoPrint Team ID and personal API key from Profile > API Access. If you do not have a key yet, click Create API Key. If you later regenerate your key, this Zap may stop working until you update its YoPrint connection with the new key. For full connection steps, see Connecting Zapier with YoPrint and Creating a Zap.
  • A connected Gmail account, if you choose the Gmail route.
  • A test sales order with a job you can move to your chosen status, and message participants with email turned on who expect a test email. Testing the email step sends a real email.

Create the job-status trigger in Zapier

Zapier

These steps happen in Zapier. Zapier's screens may have changed since these pictures were taken. If something looks different, follow Zapier's trigger setup guide.

Start in your Zapier account. Keep your API key private and use the Team ID from the same YoPrint team.

  1. Create a new Zap from the sidebar, using Create Zap or Create > Zap workflows.

    Create a Zap from the Zapier sidebar

  2. Give your Zap a name you will recognize, such as Job status email. The screenshot shows Job Status Changes To Send Out Emails, but you can use any clear name. Ignore the AI automation prompt in the center of the canvas.

    Name the Zap at the top of the editor

  3. Open the Trigger step. Click the trigger block on the canvas to open its setup panel.

    Open the trigger step

  4. Search for YoPrint and select its latest version. Choose the current YoPrint app. If Zapier lists version numbers such as 1.3.0 or 1.4.0, select the latest version.

    Select the latest YoPrint app

  5. Select Job Status Changed as the trigger event.

    Select the Job Status Changed event

  6. In Setup, click Continue to move to account connection.

    Continue after selecting the trigger event

  7. Under Account, select your connected YoPrint team. To connect it for the first time, choose Connect a new account or Sign in. If you select an existing connection, skip the connection window below. In the right panel under Account, open the dropdown to pick an existing team, or click Connect a new account to open the connection popup.

  8. In the connection window, enter your Team ID and personal API key from Profile > API Access in YoPrint, then click Yes, Continue. Teams on an active trial of a plan with API access can create a key there without contacting support. The window header may still display YoPrint (1.0.1).

    Enter the YoPrint Team ID and API key in the empty connection fields

  9. With your YoPrint account selected, click Continue to move from Setup toward Test.

    Continue with the connected YoPrint account

  10. Click Test trigger. In the right panel, continue past any Configure settings to the Test section. Click Test trigger to pull sample records from YoPrint.

  11. Review a test record with the job and status you want to use, then click Continue with selected record. Scroll through the record fields to find Status Label (such as In Production) and the job identifier (Scoped Id). If your test records show a different status, move a job on your test order to that status in YoPrint, then click Find new records in Zapier to pull recent eligible jobs, and choose a record with the status you want.

Continue with the selected job-status test record

Filter for the job status you want

Zapier

These steps happen in Zapier. Zapier's screens may have changed since these pictures were taken. If something looks different, follow Zapier's filter guide.

The trigger starts whenever a job status changes on your connected YoPrint team. The filter checks the status so only matching changes send this email.

  1. Add an action after the trigger and select Filter by Zapier. Choose the built-in Filter tool. If Zapier lists more than one Filter option, choose the one marked Latest.

    Select Filter by Zapier after the trigger

  2. In Configure & test, click Continue to open the filter rules.

    Open the filter rules

  3. Set the field to Status Label, the condition to (Text) Exactly matches, and the value to the status you want, such as In Production. This status check is case-insensitive, but the text must match your YoPrint status name. In YoPrint, check your status names under Settings > Statuses on the Job tab. If you rename the status in YoPrint later, update this rule too.

    Filter for a Status Label that exactly matches In Production

  4. Click Continue to test the filter against your selected record.

Review the test outcome:

  • If your selected record has the status you entered, Zapier confirms Your Zap would have continued.
  • If your selected record has a different status, Zapier displays Your Zap would not have continued.

Both outcomes show how the filter evaluates that test record. To test the passing route, return to the trigger and select a record with the matching status.

You can add more conditions with AND when all must match, or OR when any one may match. With OR, every matching status sends the same email. To send a different email for another status, build another Zap with its own filter.

Choose how to send the email

Choose your sender and continue with that section only:

  • Send through YoPrint: Sends a sales-order message using an email template from YoPrint. The message goes to the order's message participants who have email turned on. This route reopens the filter to keep quote jobs out.
  • Send through Gmail: Sends an email directly from your Gmail account. It uses Formatter to prepare recipient addresses and lets you write a custom message body.

Send through YoPrint

Zapier

These steps happen in Zapier. Zapier's screens may have changed since these pictures were taken. If something looks different, follow Zapier's action setup guide.

Use this route to send a sales-order message from YoPrint using an email template. This action is made for sales orders, and the filter keeps quote jobs out. If you want to write a custom message from Gmail, follow the Gmail section instead.

  1. Click step 2 in the editor to reopen the filter. Click + And below your first rule, set Sales Order Is Quote to (Boolean) Is false, then click Continue.

    Add a condition that excludes quotes from the sales-order message

Keep the exact status rule

This rule skips quote jobs. The screenshot above shows an older example with Contains, so keep your Status Label rule set to Exactly matches so only that exact status sends the email.

  1. Add an action after the filter and select YoPrint.

    Select YoPrint for the email action

  2. Select Send Sales Order Message as the action event, then click Continue.

    Choose the Send Sales Order Message action

  3. Select the same YoPrint account as your trigger, then click Continue.

    Select the connected YoPrint account for the action

  4. Map Sales Order ID to Order Id from the trigger. In Message to Send, choose Send Email from Template, then select your Email Message Template Id and click Continue. In YoPrint, create email templates under Settings > Message Templates: choose Email Template and set Template Type to Sales Order Message. See How to Create and Use a Message Template. YoPrint sends the template message to the order's message participants who have email turned on.

    Map the order ID and select the email template

Testing sends a real email

Check the order, recipients and message before testing. Use a test order and recipients who expect the email. Zapier performs the action when you test it. Before testing, open the test sales order in YoPrint to check which message participants have email turned on.

  1. Click Test step (labeled Retest step in the screenshot if you already tested) and check that the response shows Success true. Wait to click Publish until step 7.

    Review the YoPrint action test response

  2. Confirm the right message arrived in the recipient's inbox, then click Publish (at the bottom of the previous screenshot) to turn on the Zap.

The Zap runs for new matching status changes after you turn it on. Your YoPrint route is complete; skip the Gmail section below.

Send through Gmail

Zapier

These steps happen in Zapier. Zapier's screens may have changed since these pictures were taken. If something looks different, follow Zapier's Gmail guide.

Use this route instead of the YoPrint message action. YoPrint outputs the order's message participants who have email turned on as a list called Participant Emails. Zapier formats this list as line items. Because Gmail requires a single comma-separated text string for recipients, add Formatter by Zapier to convert the list before sending the email. Zapier's line-item conversion guide explains line-item transforms. To skip quote jobs on this route too, add the same Sales Order Is Quote rule shown in Send through YoPrint.

  1. Add an action after the filter and select Formatter by Zapier.

    Select Formatter by Zapier

  2. Select Utilities as the action event, then click Continue.

    Choose the Utilities event

  3. Set Transform to Line-item to Text and Input to Participant Emails from the YoPrint trigger. Leave Separator blank to use commas, then click Continue.

    Convert Participant Emails with Line-item to Text

  4. Click Test step to run the conversion.

    Test the email-list conversion

  5. Check that the text field in the output shows the recipient email addresses. When you select this field in Gmail later, Zapier names it Output Text.

    Review the transformed email addresses

  6. Add another action and select Gmail.

    Choose Gmail as the next action

  7. Select Send Email as the action event, then click Continue.

    Choose the Gmail Send Email event

  8. Connect and select the Gmail account you want to send from, then click Continue.

    Select the connected Gmail account

  9. In To, select Output Text from the Formatter step. Everyone in To can see the other addresses.

    Use the Formatter Output Text in the Gmail To field

  10. In From, choose the sender email address.

Choose the sender address

  1. Enter your sender name in From Name and an email subject in Subject. You can insert trigger fields in Subject the same way as in Body.

Enter the sender name and subject

  1. Write your message in Body. Insert fields from the trigger, such as the job number, where you want the email to include job details.

Write the email and insert job details from the trigger

Click into the field and search for trigger data to personalize the email:

  • To insert the job number, search for and select Scoped Id. Because Scoped Id already includes JOB- (for example, JOB-1374), do not type JOB before it. The screenshots below show JOB typed before it; leave that out.
  • For the sales order number, select Order Scoped Id.
  • To insert the new status, select Status Label.
  • You can also insert other trigger fields such as Customer Name.
  1. Click Continue to review the email before testing.

Continue after completing the email

Testing sends a real email

Check the order, recipients and message before testing. Use a test order and recipients who expect the email. Zapier performs the action when you test it.

  1. Check the recipient addresses and message, then click Test step.

Review the test email before sending it

  1. Review the test result. The pictured response includes SENT.

Review the Gmail test result

  1. Confirm the email arrived in the inbox with the right recipients and message, then click Publish in Zapier to turn on the Zap.

The Zap will send through Gmail when a new job-status change passes your filter.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.