Skip to main content
Skip table of contents

Adding Nested Related List

How to Create Nested Related List Table in the Body Content?

What is nested related list table?

Nested related list table is a table that displays related list within a related list of a main object, meaning that there is one related list that is not directly connected to the object. One most seen example is the Opportunity Line Item, which is connects to Account through Opportunity. It could be also a list of Quote Line Item which is related to Quote and does not directly associate with Account or Opportunity.

How can you add more than two related lists in a table?

Adding related lists is now easier with the automatic table creation function in Data Source tab. Please follow the steps below to add a nested table with at least 2 related lists.

  1. Navigate to Data tab > open the main object Data Source > select Related List > choose a Related list > create new Table

    image-20240126-090032.png
  1. Choose the fields that you want to display in columns in the table, click "Insert table to cursor"

    image-20240126-090041.png

    A table is added with the related list assigned to its Table Body element. When you select table it will show all the field and data of that related list, including its Related List

  2. Choose Table Body from the breadcrumbs > open Element tab > add another Row under the current one

    image-20240126-090105.png
  1. Open the Data tab (of Table Body), choose Related Lists tab and choose another related list (Opportunity Product) from the list

    image-20240126-090306.png

    Assign it to the second row that you just added

    image-20240126-090315.png

    It will create a new variable to hold the query command of that related list > click "Save"

    image-20240126-090322.png

    To understand more of the structure of a table, please have a look at Work with Tables

  2. The Row element would instantly bolded meaning it has some content which is repeating the collection (related list) that has been selected in step 4

    image-20240126-090449.png

    Then in the Data tab, any fields from this second related list can be dragged and dropped (mapped) into the body content

    image-20240126-090801.png

    And done, you have finished creating nested related list table and you can add more child elements (such as paragraphs, list items, groups) to create another layer of related list if required.

    Here is a short video on how to create a nested related list table by adding and assigning related list to table elements.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.