Skip to main content
Solved

Formatting a list to be included within an email.

  • July 19, 2023
  • 10 replies
  • 251 views

benvk
Contributor
Forum|alt.badge.img+8
  • Contributor
  • 60 replies

Hi, 

I have a workbench that processes data of X number of rows. At the conclusion I would like to send an email to summarise what was done. I would love something like:

 

Hi Ben, 
 
We have just updated the table with 32 new rows.
 
Here is a summary of the data added:
 
ASSET ID | NAME | DOB
 
150 | Ben | 02/02/1992
 
151 |Tony | 01/01/2001
 
....
 
....
 
183 | Michelle | 03/03/1983

I have added a statistics calculator to my workbench, this is currently able to give me the summary (total number of rows) to include in the opening sentence, but I am not sure how to add the 32 rows to the email, formatted as a table.

 

I know this has to be such a simple task, I just cant work out how to do it!

 

Thank you.

 

 

 

 

Best answer by ebygomm

True, but I then you need to create the entire email body in the HTMLReportGenerator, not the table only.

This is the method i would use, create the table, then extract just the table content into an attribute to use in the email body

 

image

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

10 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • July 19, 2023

Multiple ways to do this, I use an Aggregator to merge multiple rows into one.


benvk
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 60 replies
  • July 19, 2023

Multiple ways to do this, I use an Aggregator to merge multiple rows into one.

I am not sure the aggregator will work as I am wanting to include the list of items in the final email. Could the aggregator still achieve this list?


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • July 19, 2023

I am not sure the aggregator will work as I am wanting to include the list of items in the final email. Could the aggregator still achieve this list?

Not sure if I understand what you mean, but I think yes. You can always use Group By to keep original attributes. Attached workbench demonstrating this.

 

AggregatorSample(2021)


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • July 19, 2023

You should be able to create a html table with the HTML Report Generator which can be included within the email


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • July 19, 2023

You should be able to create a html table with the HTML Report Generator which can be included within the email

True, but I then you need to create the entire email body in the HTMLReportGenerator, not the table only.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • July 19, 2023

True, but I then you need to create the entire email body in the HTMLReportGenerator, not the table only.

This is the method i would use, create the table, then extract just the table content into an attribute to use in the email body

 

image


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • July 19, 2023

True, but I then you need to create the entire email body in the HTMLReportGenerator, not the table only.

Nice thanks, learned something new today. :)


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • July 19, 2023

You should be able to create a html table with the HTML Report Generator which can be included within the email

+1 for the HTMLReportGenerator way.


benvk
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 60 replies
  • July 19, 2023

I am not sure the aggregator will work as I am wanting to include the list of items in the final email. Could the aggregator still achieve this list?

Thanks heaps for the reply, this did work for me!


benvk
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 60 replies
  • July 24, 2023

True, but I then you need to create the entire email body in the HTMLReportGenerator, not the table only.

Thanks again for the suggestion provided, it is working great.

I am just wondering if there is a simple way for me to add a header row to my HTML table, for inclusion in my final email?

 

The above solution you provided generates output that looks like the following, you will note it does not have any column headers. I am trying to work out how to add these but I am not having much luck!

 

image 

This is the current configuration, as you can see there is only one "column name" field to populate, so its not really set up for this exact situation.

image