Recreate repeating group in email

@emmanuel

Can a return/line break be added to a field that can be dynamically inserted into an email? So in @uncode example above, if you have no idea how many rows you would need, it would be an interesting hack if you can achieve the end result by adding the “static” type in fields in that datatype for each thing.

Here’s a different example - an order. If an order type has two fields, SKU and Quantity, can we add additional “static” fields such as “rich_return” and “rich_spacer” and “rich_quantity” and “rich_SKU” and “rich_delimiter”? Then we could set up an order email with the maximum rows that we think we’ll ever have. The email in the workflow would look something like this (static fields have “rich_” as a prefix):

Items ordered:

[OrderItem1’s rich_SKU][OrderItem1’s rich_spacer][OrderItem1’s SKU][OrderItem1’s rich_delimiter][OrderItem1’s rich_quantity][OrderItem1’s Quantity][OrderItem1’s rich_return][OrderItem1’s rich_return][OrderItem2’s rich_SKU][OrderItem2’s rich_spacer][OrderItem2’s SKU][OrderItem2’s rich_delimiter][OrderItem2’s rich_quantity][OrderItem2’s Quantity][OrderItem2’s rich_return][OrderItem2’s rich_return][OrderItem3’s rich_SKU][OrderItem3’s rich_spacer][OrderItem3’s SKU][OrderItem3’s rich_delimiter][OrderItem3’s rich_quantity][OrderItem3’s Quantity][OrderItem3’s rich_return][OrderItem3’s rich_return]

The resulting format would resemble:

Items ordered:

SKU: 12345 / Quantity: 2,000

SKU: 67890 / Quantity: 1,000

SKU: 98765 / Quantity: 500

This seems crazy to set up but it could be a way to hack a repeating group format into an email. I just can’t find a way to get a line break to work dynamically.

3 Likes