Formatting Get Account MAP value in Workflow E-mail

Hey Team,

Long time ago I messed with workflows so a bit rusty. I received what seems to me is a very simple and straight-forward customer request.

I need to fetch all accounts for an identity and send out these in an e-mail.

I am currently fetching source names using the Get Accounts action as a variable in my Send Email action like this:

$.getAccounts.accounts[*].sourceName

This does get me all the source names of the accounts for the associated identity in a MAP structure, however the formatting is really ugly for the end-user.

Output:
[“Source1” “Source2” “Source3” “Source4”]

Is there any way to format this output in the e-mail to be more user friendly like the following:

Source1
Source2
Source3
Source4

I’ve tried some HTML logic but it seems the IdentityNow E-mail Template engine doesn’t support any complex logic. Any ideas?

Best regards,
Seb

Something like this, assuming you have the list of sources in a variable:

#foreach ( $sourceName in ${listOfSourceNames} )
<li>$sourceName</li>
#end  

A usual example:

Ahh of course, Velocity is what you use.. A bit rusty as you can see :smiley: Thanks for the help!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.