Template test data

Screenshot of test data

Use 'test data' on a template to mimic the data payload that will be passed into the template when triggered from your application. By setting up test data, you can reference variables from within your template to get an accurate preview for how your template will render when live data is passed in.

Input test data within the 'Data' tab on a template builder. Data is inputted as a JSON object and can be referenced within your template and block components using Liquid templating.

Test data scenarios

Data-rich email templates like reports or receipts, can often contain conditional logic for showing or hiding content based on data. This can be a challenge for teams to design around since the template can receive different sets of data.

To help with this, Waypoint provides a way for teams to model different test data scenarios and easily switch between them. When paired with our powerful visual email template builder, teams can quickly see how their template might look like in each scenario.

Creating a test data scenario

From the 'Data' tab in the template builder, click on the scenario dropdown, and then '+ Add scenario'.

Screenshot of test scenarios

Adding a scenario will duplicate your default scenario data and allow you to manage a new set of data that you can toggle between.