Documill Dynamo
Breadcrumbs

How to create a paragraph for each Related List item (Legacy)

The Related List is mapped in one paragraph in the template, all the Salesforce fields from the Related list are dropped into template as child elements of the paragraph. In the result document, data from list item will be presented as a separate paragraph. The paragraph and static text in it will be replicated for each line item.

image-20240109-092845.png


In document template workspace, select Source tab on the right pane -> select Salesforce data source

Click to the icon next to the Object, select Related Lists to open the Lists view

image-20240109-092851.png


In the Lists view, select the Related List that you want to map. In this example, it's the Opportunity Product

image-20240109-092906.png


Point to the paragraph in the template that you want to map the list to, and in Assign to, select Paragraph

To ensure you have selected the right paragraph, check the grey bar on the edge of the template.

image-20240109-092913.png


When the list has been mapped to paragraph, the grey bar and the Paragraph section on breadcrumbs will turn blue, indicating now the paragraph has dynamic content. Data Source will open the list of fields in the Related List.

image-20240109-092919.png


Select the field you want to add to the template.

image-20240109-092924.png


Click to the Drop to document button. Drag and drop it to the paragraph.

image-20240109-092930.png


3. Add more fields to template

Create a space after a dynamic field, point to the placeholder text, select the Tag tab,

image-20240109-092935.png


The example shows when the "space" is still wrapped inside a span (with blue highlight) and when it's outside the span by using Append Space

image-20240109-092942.png


Continue to add more fields or texts to the paragraph as you like.

image-20240109-092948.png


See more use cases for adding Related List to template