---
title: Publish an automation
description: Publish a draft so the trigger runs against it, and choose whether enrollments still running on the previous version move to the new one.
sidebar:
  order: 2
area: flows
feature: automations
appPath: /flows/home
lastVerified: 2026-10-22
version: "2026-10-16"
audience: admin
related:
  - flows/automations/change-the-mode
  - flows/automations/automation-and-enrollment-states
  - activity/enrollments
intercom:
  - id: "11612966"
    title: How to create an Automation Flow (Pyn 2)
    url: https://intercom.help/pyn/en/articles/11612966-how-to-create-an-automation-flow-pyn-2
    note: draws on
  - id: "6024094"
    title: "If I turn on or add a Pyn in an enabled Automation, will employees already enrolled in the Automation receive that Pyn?"
    url: https://intercom.help/pyn/en/articles/6024094-if-i-turn-on-or-add-a-pyn-in-an-enabled-automation-will-employees-already-enrolled-in-the-automation-receive-that-pyn
    note: "Pyn 1 article, kept for reference"
---

Edits to a trigger, audience or step are saved as a draft as you make them, but Pyn evaluates and sends from the last published version. Publishing takes a snapshot, a numbered version, and offers to move active enrollments onto it.

## Before you start

- Publishing needs the admin or owner role.
- The **Publish** button is disabled while there is nothing to publish. "Draft autosaved" under the title confirms your edits are stored.
- Any step without a sender or recipient blocks publishing; the step card shows what is missing.

## Steps

1. In Pyn, open **Flows** in the left navigation, then **Automations**, and select the automation. Make your changes.

2. Select **Publish** at the top. To throw the draft away instead, open the arrow beside it and select **Discard**.

3. If enrollments are still running on the previous version, the **Update Enrollments** dialog opens: "*n* enrollments are still active on the previous version. Select which ones to update to the latest published version." Each row shows the **Enrollment** and its **Reference Date**.

![Publishing a change offers to update enrollments still running on the previous version.](https://support.pynhq.com/media/flows/automations/flows-automations-update-enrollments.png)

4. Every enrollment is ticked. Untick any you want to leave on the old version, then select **Update Enrollments**. Close the dialog to leave every enrollment on its old version.

> **Note:** Updating an enrollment adds steps that are new in the version, rewrites steps that have not sent yet and removes steps you deleted. Anything already sent, sending or in error is left alone, so nobody receives a message twice.

## What you should see

The **Publish** button is disabled again and **Required** disappears from the Automations table's **Publish** column. Under [Enrollments](https://support.pynhq.com/activity/enrollments/), updated enrollments show the new steps; enrollments you left behind keep running the old version to completion.

## Related

- [Change the mode of an automation](https://support.pynhq.com/flows/automations/change-the-mode/) to turn the published flow on.
- [Automation and enrollment states](https://support.pynhq.com/flows/automations/automation-and-enrollment-states/) for how versions relate to enrollments.
- [Enrollments](https://support.pynhq.com/activity/enrollments/) to check what each person will receive.

## Related Intercom articles

- [How to create an Automation Flow (Pyn 2)](https://intercom.help/pyn/en/articles/11612966-how-to-create-an-automation-flow-pyn-2) — draws on
- [If I turn on or add a Pyn in an enabled Automation, will employees already enrolled in the Automation receive that Pyn?](https://intercom.help/pyn/en/articles/6024094-if-i-turn-on-or-add-a-pyn-in-an-enabled-automation-will-employees-already-enrolled-in-the-automation-receive-that-pyn) — Pyn 1 article, kept for reference
