---
title: "从电子表格注册"
description: "上传一份邮件合并电子表格，一次注册许多人，每人有自己的参考日期，额外的列可以作为自定义令牌用在消息中。"
sidebar:
  order: 2
area: flows
feature: automations
appPath: /flows/home
lastVerified: 2026-10-23
version: "2026-10-23"
audience: admin
related:
  - flows/automations/manually-enroll-employees
  - flows/steps
  - activity/enrollments
intercom:
  - id: "16996083"
    title: Setting Per-Employee Reference Dates in a Mail Merge Spreadsheet (Pyn 2)
    url: https://intercom.help/pyn/en/articles/16996083-setting-per-employee-reference-dates-in-a-mail-merge-spreadsheet-pyn-2
    note: replaces
  - id: "11506664"
    title: Manually Enroll Employees in a Flow (Pyn 2)
    url: https://intercom.help/pyn/en/articles/11506664-manually-enroll-employees-in-a-flow-pyn-2
    note: draws on
translation:
  source: flows/automations/enroll-from-a-spreadsheet.mdx
  sourceSha: 1287d16b1662a552108ca7303b828ffb7b7a4722
---

邮件合并电子表格是一次附带数据的手动注册。每一行是一位员工；**Reference Date** 列为每一行指定各自的日期，其他任何列都变成一个令牌，例如 `custom.startLocation`，你可以把它放进消息里。一次上传就能注册一整批入职日期各不相同的新员工，每个人收到的问候里都写着正确的办公室和正确的笔记本电脑领取时间。

## 开始之前

- 制作一个带表头行的 `.csv`、`.xls` 或 `.xlsx` 文件。工作簿只读取第一个工作表。
- 一列存放每个人的主要工作电子邮件。Pyn 通过包含“email”或“e-mail”的表头找到它，否则取单元格大多为电子邮件地址的第一列。
- 可选的 **Reference Date** 列以 `yyyy-MM-dd`（例如 `2026-11-03`）或 `yyyy/MM/dd` 存放日期，或者在 Excel 或 Google Sheets 中用真正的日期格式单元格。`03/11/2026` 这种日在前或月在前的文本会被拒绝，Pyn 不会去猜测。表头可以是 `Reference Date`、`reference_date`、`ReferenceDate`、`Ref Date` 或 `ref-date`，大小写不限；`Start Date` 被当作普通的令牌列。
- 其他每一列都变成一个令牌。表头会转换为驼峰式，所以 `Start Location` 是 `custom.startLocation`。Reference Date 列永远不是令牌。
- 使用这些令牌的步骤已存在并已发布。见[步骤和消息](https://support.pyn.ai/zh-cn/flows/steps/)，了解如何插入令牌。

## 步骤

1. 在 Pyn 中，打开左侧导航中的 **Flows**，然后打开 **Automations**，并选择该自动化流程。

2. 选择模式按钮，然后选择 **Manual Enroll**。

3. 在对话框中设置 **Reference Date**。Reference Date 单元格为空的行使用这个日期。

4. 选择 **Upload mail merge spreadsheet** 并选择你的文件。（**Upload a CSV, XLS, or XLSX file of employee email addresses** 也能识别带额外列的表头行，并把文件当作邮件合并处理。）

![The Manual Enroll dialog lists Upload mail merge spreadsheet among the ways to add people.](https://support.pyn.ai/media/flows/automations/flows-automations-mail-merge.png)

5. 阅读上传区域下方的提示。“The following spreadsheet columns were converted to custom tokens you can use in this Flow's content:”列出这些令牌。“Reference dates were taken from the spreadsheet's "Reference Date" column.”确认了逐行日期。一份没有匹配到在职员工的电子邮件列表，以及参考日期无效的行的列表，让你可以修正并重新上传那些行；有效的行已经在选择范围内。

6. 按需要选择 **Verify Mode** 和 **Flag as Test**，然后选择 **Next**，检查名单，再选择 **Confirm**。

> **Caution:** 确认名单显示人员，但不显示每个人的日期。在选择 **Confirm** 之前，检查上传区域下方的提示和你的电子表格。如果某个电子邮件出现两次，以第一行为准。

## 你应该看到什么

每一行都成为[注册](https://support.pyn.ai/zh-cn/activity/enrollments/)下的一条注册，带有它自己的 **Reference Date**。打开某条注册中的一条消息，可以看到自定义令牌已填入该行的值。在同一个对话框中上传第二个文件会用新文件的值替换某人的日期，而第二个文件中的空单元格会清除他们从第一个文件得到的日期。

## 相关

- [手动注册员工](https://support.pyn.ai/zh-cn/flows/automations/manually-enroll-employees/)，了解添加人员的其他方式。
- [步骤和消息](https://support.pyn.ai/zh-cn/flows/steps/)，了解在消息中插入 `custom.` 令牌。
- [注册](https://support.pyn.ai/zh-cn/activity/enrollments/)，检查每个人的日期和消息。
