Zendesk 提供了多种类型的原生数据对象,用于存储和管理您的客户数据,包括工单、用户、组织等。我们将这些称为标准对象。但是,标准对象无法提供您的组织可能需要的所有数据对象类型。使用自定义对象,管理员可以创建自定义对象,以捕获不属于这些标准对象的数据。通过自定义对象扩展 Zendesk 数据模型,将自定义数据与工单、触发器和 Explore 分析无缝整合。
创建自定义对象包括创建实际对象、使用自定义字段定义架构、将对象连接到相关对象,以及授权专员访问自定义对象记录。为满足工作流程要求,您可能还需要在触发器中引用自定义对象。
创建自定义对象
在技术级别,自定义对象由名称、密钥和字段组成。名称和密钥用于识别对象,字段用于创建对象属性的架构。请注意,架构不包含关于对象特定实例的任何信息,而描述了可以为此类对象收集的信息。自定义对象的创建记录在审核日志中。
开始创建自定义对象之前,建议规划自定义对象工作流程。
创建自定义对象
- 在管理中心,单击侧栏中的对象和规则 (
),然后选择自定义对象 > 对象。
- 单击创建对象。
- 输入以下信息:
- 名称:将向专员显示的对象名称。
- 复数昵称:用于导航和列表的对象名称的复数版本。
- 对象密钥:对象的唯一标识符。
- (可选)描述:帮助其他管理员了解对象用途的描述。如果超过 92 个字符,对象页面列表中的描述将被截断。
- (可选)为各条记录添加图像图标:允许管理员和有权限的专员添加和管理此对象记录的图标。在选中后取消选择的情况下,现有图标会继续可见(除非被移除),但无法添加新的记录图标。
- 单击创建对象。
- 打开自定义对象的名称字段(字段键 Standard::name),指定对象记录的命名方式:
- 手动命名记录:默认情况下,专员必须为其添加的每条记录手动输入名称。如果您想使用记录名称作为唯一标识符,可以选择需要唯一的记录名称。
- 带自动编号的名称记录:如果您希望根据配置的结构使用唯一、自动生成的值来命名记录,请选择自动编号。
注意:如果自定义对象存在记录,则无法更改记录命名设置。 - 单击字段标签,添加自定义字段到对象。这将创建对象的架构或属性。
- 将自定义对象连接到相关对象。这可视为定义此对象与 Zendesk 中其他对象和数据关系的数据模型。
- (可选)单击编辑顺序,拖放字段,使其在记录预览中按所需的顺序向专员显示,等完成后单击保存。
- 单击权限标签,查看专员访问对象记录的权限。在 Enterprise 服务模式中,您可以配置对象记录的权限。在 Team、Growth 和 Professional 服务模式中,专员权限是预定义的。
配置自定义对象记录的命名方式
自定义对象始终有两个字段:名称和外部 ID。通常,姓名字段是一个文本字段,供专员用于为其创建的记录手动输入值。但是,即使进行了出色的训练,这仍然可能导致数据和记录名称格式不一致。
管理员有两个选项可确保记录名称的唯一性和可识别性:一是需要唯一的记录名称,二是自动编号。需要唯一性会阻止专员添加记录,直到他们输入唯一的记录名称,而自动编号则提供自动生成的唯一记录名称。
- 在管理中心,单击侧栏中的对象和规则 (
),然后选择自定义对象 > 对象。
- 单击要编辑的自定义对象的名称。
- 单击字段标签。
- 单击字段键为 Standard::name 的字段的显示名称。
显示名称默认为名称,但该值可以更改。字段键无法更改,是可靠的标识符。
- 在记录名称类型下,根据需要配置对象记录命名方式:
-
手动命名记录:需要专员手动输入名称。
- 如果您要强制唯一性,请选择需要唯一的记录名称。
-
带自动编号的名称记录:自动生成唯一的记录名称。为自动生成的名称结构注明以下详细信息:
- 输入前缀(1-30 个字符),作为每个记录名称的开头。
前缀默认为自定义对象名称的前两个字母。
- 输入初始记录的起始号码,包括前导零,以定义用于初始记录自动编号的总位数。最多 9 位数字。起始数字默认为 0001。
使用右侧预览窗格查看自动编号格式。
- 输入前缀(1-30 个字符),作为每个记录名称的开头。
-
手动命名记录:需要专员手动输入名称。
- 单击保存。
使用自定义字段定义自定义对象的架构
使用已创建的自定义对象之前,必须添加自定义字段。这些字段定义了自定义对象的属性或架构,将由专员在创建记录时使用。字段列表按名称的字母顺序排序。
排序对象字段以打造便捷的专员体验
- 在管理中心,单击侧栏中的对象和规则 (
),然后选择自定义对象 > 对象。
- 单击要添加字段的自定义对象名称。
- 单击字段标签,然后单击编辑顺序。
- 拖放字段,使其按所需的顺序显示。
- 单击保存。
了解自定义对象记录的权限
创建自定义对象时,您还需要了解专员和客户如何访问对象及其记录。专员有两个访问级别:在专员工作区的“自定义对象记录”页面上的可见性,以及专员如何与自定义对象记录交互。客户(也称为终端用户)也可以被授权查看、编辑、添加和删除自定义对象记录。
专员权限:
在所有服务模式中,您可以决定对象在“自定义对象记录”页面上是对所有专员和管理员均可见,还是仅对管理员可见。
然后,您可以使用基于用户角色的权限来决定专员可与对象记录交互的程度。在所有服务模式中,与自定义对象记录交互的功能已针对每个系统专员用户角色进行了预定义。在 Enterprise 服务模式中,您可以使用管理中心的用户角色页面配置每个自定义用户角色对每个对象的访问权限。要查看专员对特定对象记录的访问权限概要,请使用自定义对象中的“权限”标签。
客户权限 (EAP)
客户(也称为终端用户)可以被授权查看、添加、编辑和删除自定义对象记录。授权客户查看自定义对象记录或与之交互,这样他们可以在提交工单时直接引用相关自定义对象记录,而不用在评论中提供详细信息,然后让专员自行识别和选择相关自定义对象记录。在 Zendesk 用户界面中,可以应用筛选来查找关系字段,使显示的记录仅包含与当前用户相关的记录。但是,权限是在对象级别授予的,因此从技术上讲,客户将被授权访问对象所有记录,而不仅是与其自己相关的记录。
有关更多信息,请参阅配置对自定义对象记录的访问权限。
添加对象关系。
创建自定义对象并定义其自定义字段架构后,必须将其连接到其他标准或自定义对象。查找关系字段提供了一种方法来定义自定义对象与标准 Zendesk 对象(用户、组织和工单)以及其他自定义对象的关系。查找关系可描述为源对象 → 相关对象。源对象是包含查找关系字段(以及其他字段)的 Zendesk 对象。相关对象是查找关系字段指定的对象。
添加相关对象不会自动在两条特定记录之间创建关联,而会描述可能的关系,并允许专员以这种方式关联记录。
- 其他自定义对象
- 标准对象
要想让自定义对象包含查找关系字段,请按照以下说明操作。或者,要想让其他对象包含该自定义对象作为查找关系字段,请参阅为工单添加自定义字段、为用户添加自定义字段或为组织添加自定义字段。
添加关系到自定义对象
8 条评论
Ashwin Raju
hi Ahmed..The release that we had enables to you configure if the name of the record should be unique. This enables you to identify the record based on the name.
https://developer.zendesk.com/api-reference/custom-data/custom-objects/custom_object_records/#delete-custom-object-record-by-external-id-or-name
This update does not change how external ids work.. External IDs are always unique and can still be used to identify the record.
Uniqueness of the record is especially useful in cases like Products, Orders, Contracts etc where the name is a unique identifier in the source record and you dont want to store the same field as an external id as well in Zendesk so as to achieve data synchronization.
0
Ahmed Zaid
Hi 1902738075884
I love the latest update, but I feel that it blurred the line between name and external ID fields. All my use cases are now possible, but I feel that my setup is less clean and more like a workaround.
I would love to keep the name and ID functions separate (e.g. external ID is a serial number, and name is the actual name of the asset) yet be able to search my records in a lookup field by external ID.
0
Antonya Johnston
Are there plans to allow Custom Objects to be available as datasets in Explore? Or extending the relationships so we can pull data from the object via the linked ticket.
Ex. Event custom object has date fields. These date fields do not show on the linked ticket, so they are not available in the Support data sets.
2
Ashwin Raju
Let's say I want to associate an Order to a customer. On the Order object, I will go to the Order object (which is a custom object) and create a lookup field called "Customer" and link it to the User object. From a database standpoint, what this does is to create an additional column in the Order table(custom object) that can have values that point to Users.
What we intended from that statement is that - you still need to update Order1234 to assign that order to Daniel.
I presume your question is - I have Order1234 as an Order record and have Daniel as a User in Zendesk. Can I build this relationship with CSV bulk importer?
At this point, no - but we are soon releasing the feature to update records through the bulk importer. Carl Joseph and his team are working hard at making this happen. Until then, you have 2 choices -
1) Update it manually through UI
2) Update it through APIs.
However, if you do not have Order1234 in the system, you can use CSV bulk importer and pass the record ID Daniel to build that relationship
1
Daniel Vidolich
The instructions state that "Adding related objects doesn't automatically create an association between two specific records." Is there a process to upload existing associations in bulk?
0
Shishir Sharma
Triggers on custom objects EAP is now live and allows the ability to build trigger conditions based on custom object field values. Additionally, you can create trigger actions to set or update the value of fields on the same custom object.
0
Flic
This is a breath of fresh air for me! As an Internet Service Provider, we are now able to associate service objects in a one-to-many arrangement to provide staff with immediate access to customer services. I have already begun defining several test objects and look forward to ongoing development.
I would love to be able to re-order fields in the custom object design page to set their order at data entry time by users and also define what fields are visible, and their order in the object list view as well.
Great work team!
1
Shayan Moussawi
Are the custom object record limitations, per object, or overall?
So if I had two custom objects (transactions and orders) - would I be able to have 100.000 records for transactions and 100.000 records for orders, or only 100.000 records overall?
Are there plans to extend these limits after the EAP?
0
登录以发表评论。