当您为 工单、 用户、 组织或 自定义对象创建新的下拉字段或多选字段时,您可能需要包含大量的字段值。例如,一个允许专员选择软件版本或产品类型的新字段可能包含数百个选项。您可以通过批量导入添加多个字段值,而不是手动添加字段值。您还可以导出自定义下拉和多选字段和值,以便存档或在其他应用程序中使用。
导入值仅在创建新的下拉字段或多选字段期间可用。您无法导入现有字段的值。
创建 CSV 字段值文件
要导入自定义下拉字段和多选字段的值,您必须先创建一个包含您要添加的值的 CSV(逗号分隔值)文件。您可以下载模板 CSV 文件,并在模型中添加您自己的字段值。请参考以下示例。
字段 | 描述 |
---|---|
value | (必填)在工单、用户、组织和自定义对象的下拉框或多选字段中显示的值。 |
工单标签 | (推荐)与字段值关联的标签。标签 用作工单属性,可用于触发器和其他业务规则。 |
默认 | (仅限工单字段)标识下拉或多选字段的默认值。使用 true 来标识默认值。对于所有其他值,请使用 false。 |
当您创建要导入的字段值列表时,您可能会从某个其他系统生成此值列表。大多数此类系统都允许创建 CSV 导出文件。如果您需要从头创建列表,可以使用 Excel 或 Google Sheets 等程序。
文件必须为正确的 CSV 格式,并使用 UTF-8 字符编码保存。实际支持的值数取决于字段类型,但导入的 CSV 数据文件最多可包含 3,500 行数据(一行用于标题,其余用于字段值)。
将 CSV 字段值文件导入到新的自定义字段
创建 CSV 文件后,您可以将这些值导入到新的下拉或多选字段中。您无法为现有的下拉字段和多选字段上传 CSV 文件。
- 在管理中心中,导航到正确的位置以添加新的自定义下拉字段或多选字段:
- 单击 添加字段 ,然后选择 下拉 或多 选。
- 在 字段值中,单击 上传 CSV。
- 单击 选择文件 并打开您要导入的 CSV 文件,然后单击 上传。或者,您可以拖放要导入的文件。
- 成功上传 CSV 文件后, 字段值 会更新以包含新数据。
- 完成添加关于您的新字段的信息,然后 保存 您的更改。
导出自定义下拉列表和多选字段的字段和值
随着 工单、 用户、 组织或 自定义对象 自定义字段和字段值列表的扩展,您可能会发现将自定义字段和值导出到 CSV 文件很有用。例如,您可能想将该 CSV 文件用作检查列表,以验证有最新产品类型或软件版本是否可用于您的工单。
导出自定义工单、用户或组织字段列表
- 导航到自定义字段列表:
- (可选)对列表进行筛选或排序,或更改要显示的列。这将更改导出的 CSV 文件中包含的内容。
- 单击页面顶部的 操作 ,然后选择 下载 CSV,以便以 CSV 格式导出工单字段列表。
导出的文件默认包含每个工单字段的以下信息:显示名称、 类型、 字段 ID、 修改日期和 标签。例如:
该文件可在文本编辑器和电子表格应用程序(例如 Microsoft Excel 或 Google Sheets)中打开,以进行进一步处理。
翻译免责声明:本文章使用自动翻译软件翻译,以便您了解基本内容。 我们已采取合理措施提供准确翻译,但不保证翻译准确性
如对翻译准确性有任何疑问,请以文章的英语版本为准。
13 条评论
Stephan Ossowski
dei CSV-Import-Funktion steht tatsächlich nur im Rahmen der Erstellung eines Felds zur Verfügung. Wenn ein bestehendes Feld um weitere Dropdown-Optionen erweitert werden soll und das nicht manuell im Admin Center passieren soll/kann, dann wäre die API die beste Option (Danke an Michael für den Link).
Falls du dazu noch Fragen hast, dann melde dich gerne mal bei uns im technischen Support.
Mit freundlichen Grüssen,
Stephan
0
Mike
Wedemeyer, Manuela
Ich schätze, das geht nur via API:
https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_fields/#update-ticket-field
0
Wedemeyer, Manuela (pn15999)
Gibt es diese Möglichkeit nur, wenn ich ein neues Feld definiere?
Ich suche nach einem Weg, rund 500 Optionen für ein existierendes dropdown-Ticketfeld zu ergänzen - das möchte ich nicht manuell tun.
0
Drew Frey
2
Jameela Bacchus
Can David Judenne's recommendation here(first comment on this article): https://support.zendesk.com/hc/en-us/articles/4408836502682/comments/4408850062106
Be flipped into a feature request ? I didint find one addressing this.
Importing new field options into an existing field would be very practical.
2
Dave Dyson
Thanks!
0
Alex M
Also requesting the feature to allow for importing of an excel with additional fields for an already existing ticket field. Doing updates to ticket fields with over 200 values is very time intensive where a simple excel document can take minutes to setup saving hours of work.
10
Jeff C
Unfortunately, there is not a native feature to this other than what described here. What I have in mind is running an API script that will get all your ticket fields then making a call to the List Ticket field options endpoint that loops replacing the Ticket Field ID value each time.
0
JJ Breen
Is there a way to (recursively, API, or otherwise) export a list of fields AND values together?
I have been tasked with auditing all of our drop-down fields and it is almost easier to just copy and paste or manually type the values into a spreadsheet than to click into each of the field names and download individual CSVs for all 34 drop-downs, and then try to match those CSVs back to the field name itself.
3
Patrick Wilson
Thank your for your response. Based on your answer, I was able to device a workaround. The corrupt characters may be a more recent issue, not from the original import as I have found it in some of the newer, manually entered fields. I will have to explore this in the near future.
1
登录以发表评论。