Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
5 replies
Answers
1 answer
Subscribers
7 subscribers
Views
6303 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Need to display a dynamic table in an email body by using 'Send E-mail'
girikumard
over 8 years ago
Need to display a dynamic table in an email body by using 'Send E-mail' node. number of rows in table will be based on number of values in a text array field in process variable. Any Ideas ?
OriginalPostID-163204
OriginalPostID-163204
Discussion posts and replies are publicly visible
0
sonalk
over 8 years ago
Hi Girikumard,
The shared component Text From Template Function could be helpful in this case as mentioned by Sikhi in the below link
forum.appian.com/.../e-160319
Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pavans813
over 8 years ago
You can create an expression with "ncolumntable" function available in "HTML Display functions" shared component. Please have a look at this link for more details:
forum.appian.com/.../
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
pavans813
over 8 years ago
Just to add, you would need to insert an expression in the email message body. And to give you a quick example, your expression would go something like this
=ncolumntable({"Item Number","Item Type","Description"}, pv!Item.Number, pv!Item.Type, pv!Item.Description)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
jorgea999
over 8 years ago
Use an HTML template on the Send Email node. On the HTML Template, have a key that would take in an HTML table. You can either leverage that HTML Display Functions plugin or you can create your own expression rule to generate an HTML table (depends on your style requirements). Use an apply to loop through the items of the array while at the same time appending the appropriate HTML tags. The output of this expression rule should be a HTML table. That HTML table should be saved in a variable and then passed into that key on the HTML template.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
girikumard
over 8 years ago
Thanks... Tried with ncolumntable function & it worked.. :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel