AnsweredAssumed Answered

Iterating parameters in email

Question asked by tobiasw. on Mar 26, 2012
Latest reply on Mar 27, 2012 by ronald.van.kuijk
Hi,

I am passing a hashmap through my process, which contains products.

E.g. it could be described similarly like this: paramsHashMap.productsArray = [{id:1, name:blub, qty: 15},{id:2 ,name:bla, qty:14}].

This hashmap is injected into an email task. How can I iterate an array within an html email body such as:

<html>
<body>
Hello ${customer},<br/>
<br/>
Your order contained ${listofproducts}<br/>.
</body>

Do I have to create a service task first and create a concatenated String and pass it on,
or can I do this somehow within the email itself?

Cheers,

Tobi

Outcomes