Dynamic Content

Dynamic Content is one of the most powerful features available to you in JungleMail for Office 365. With Dynamic Content, you can automatically and dynamically populate your email content with data from your SharePoint lists or libraries. In this tutorial, you will learn how to do this.

Configuring Dynamic Content for a section


The Dynamic Content feature, formulas, and sending conditions only work if there's at least one recipient specified in the Recipients step.

In this tutorial, we will enable Dynamic Content for a section. To begin with, it is good to know that Dynamic Content can be enabled for a whole Section or on a particular Block. When Dynamic Content is enabled, it is reflected in the border of a particular section or a block, as it will change the color to light blue instead of green.

To configure Dynamic Content for a section, take the following steps:

1. Select the section that you want to be populated with SharePoint content. Then, in the Section properties window on the right, select the Dynamic tab and switch the Enable SharePoint content toggle to On.

2. In the pop-up window, browse to the SharePoint Online page with the content that you want to include in your newsletter. Once you have selected the desired page, click Select.

3. Now, it's time to build a template a bit further. Simply drag and drop the desired blocks to form the section layout. In the example, we are using a 2-column layout with an Image block for a picture, a Title block to show a title of a news post, and a Text block to hold the news content.

4. With the layout in place, we need to connect each block to the related column of the SharePoint library that we've selected earlier. 

Let's start with the Image Block. Click the Browse button on the image you inserted and then, in the right panel, select the [Banner Image URL]:[URL] placeholder. 

The result: 

Next, we will configure the Title Block to display our article title. Click the Title Block you inserted in your section, delete the default text and click  { Columns }.

The corresponding column in the Site Pages library is Title, so we select it and click Insert.

Finally, we configure the Text Block to display the actual content of the article. Select the Block, delete the default text, and click { Columns & Links }

Browse to the column that contains the news content and click Insert. For the Site Pages library we recommend to use the Description column.

The resulting section after the configuration: 

Adding conditions (optional)

5. To filter out irrelevant content, you can add conditions to the Dynamic Section. Let's take a look at how to set this up. 

First, let's add the following conditions:

ArticleType column | is equal to | value | Places to visit


Article Date | is greater than or equal to | formula | Today - 7

The first condition filters the articles assigned to the topic "Places to visit", while the second condition includes only those matching articles that are 7 days old or less. "Today - 7" is a formula, and you can learn more about JungleMail formulas here.6. You can also add sending conditions to your automatic campaigns. In the example, if no recent news is found in the library, the campaign will not be sent.

Previewing results

To preview your newsletter, go to the Preview step. Here, the Dynamic Content has already been processed and you will be able to see what it would look like.

If you are happy with your result, you can save this template for future use. This way your actual newsletter will be updated with new and matching articles automatically. However, if you want to review or use the Dynamic Content in the email builder itself, you can do this by simply clicking the round-arrows icon. This will then immediately load the Dynamic Content from your selected SharePoint list.

Result after processing:
Please note that after using Process Dynamic Section, Dynamic Content becomes static. It means that you can edit this content as you like: move it, replace it etc. If you save this template with the intention to use it later, keep in mind that it will not reflect any changes that may have occurred in the SharePoint list. To save a fully dynamic template, undo the processing changes and save the template without processing the Section.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.