Skip to main content
欢迎参加 3 月 5 日至 6 日在旧金山举行的 TDX AI 代理时代开发者大会,或通过 Salesforce+ 参与。立即注册

Get Hands-on with Related Object Fields on Dynamic Forms

Learning Objectives

After completing this unit, you’ll be able to:

  • Work with related object fields on dynamic forms-enabled pages.
  • Maintain Your Administrator Certification for Spring ’24.

Drill into lookup relationship fields from the component palette in the Lightning App Builder and access fields from related objects. To display relevant data from related objects, drag the cross-object fields onto your record page.

Where: This change applies to Lightning Experience in Group, Professional, Enterprise, Performance, Unlimited, and Developer editions.

How: We made some small enhancements to the Lightning App Builder UI to help you navigate through relationship fields.

On the Fields tab, a breadcrumb at the top shows the spans that you drilled into. The top-level breadcrumb indicates the object that the page is associated with.

Fields palette with Contact top-level breadcrumb.

Cross-object relationship fields have an arrow icon (>). You can drag them onto the page as is, or click the arrow icon to drill in further.

Fields palette with Contact to Account Name breadcrumb.

When you select a cross-object field on the canvas, a new Object property shows the relationship of the field to the base object associated with the Lightning page.

You can drill down two levels.

Polymorphic relationship fields—where the related object can be one of several different types of objects—aren’t supported as cross-object fields in Lightning App Builder.

Get Ready for the Hands-on Challenge

In the hands-on challenge below, you have an opportunity to enhance more object record pages with dynamic forms.

Resources

实践挑战

+500 分

准备好

您将在您自己的实践组织中完成此单元。单击启动以开始,或单击您的组织的名称以选择不同的组织。

您的挑战

Review updates to Salesforce to maintain your Administrator certification.
Get Hands-on by using dynamic forms to access fields from related objects on the lightning page layout.
  • Create a custom Contact lightning record page:
    • Name: Contact Record Page
    • API Name: Contact_Record_Page
    • Template: edit the Salesforce Default Page
  • Upgrade the Record Detail component on Contact Record Page to use Dynamic Forms. Select ‘Contact Layout’ as source for the Dynamic Form.
  • Drag field ‘Annual Revenue’ from Account and place it under Lead Source field.
  • Save and activate as Org Default.
在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈