Insert Table
You can insert a table into a Microsoft Word template using data from Salesforce records. These records are stored as a Collection Variable Resource, which allows you to retrieve and display structured data within the document.
- Select the Action:
- In the "Select Action" dropdown, choose "Insert Table."
- Choose a Record Collection Variable:
- In the "Resource Type" field, select a Record Collection Variable Resource.
- Ensure that a resource is created before inserting the table.
- Define Table Structure:
- Set the resource type as a collection.
- Specify the number of columns and rows required.
- Insert Fields and Manage Rows:
- Insert relevant fields into the table.You can insert multiple fields into the same cell.
- To create dynamic rows, set them as data rows by placing the cursor in any cell of the required row and click the Make Data Row option that appears under the Insert Table action.
- Sort Records :
- You can control the order of records displayed in the table.
- For example, to display orders in ascending order of amount, select the "Amount" field and set the order to Ascending.
- Apply Filters and Limits:
- Set filters to refine the records inserted into the table.
- Limit the number of records displayed.
- Define the order in which records appear.
Data rows repeat themselves for the selected collection. For example, the first row represents the first order item, the second row represents the second order item, and so on.
While using the Insert Field action, the created Record Collection Variable is only available when you enter the Data row.
By following these steps, you can dynamically insert and manage tables in Salesforce based on record collections.

You can customize and format the table using standard Word formatting options, including font styles, alignment, borders, and shading.
Go to 1:29 to see the Insert Table action being used to create a sample receipt in Microsoft Word. Tables are useful for presenting hierarchical data, such as master-detail relationships, in a structured and organized manner.