AnsweredAssumed Answered

Iterating parameters in email

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

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:

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

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?