Skip to main content
Solved

Formatting a list to be included within an email.


benvk
Contributor
Forum|alt.badge.img+7
  • Contributor

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

nielsgerrits wrote:

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

View original
Did this help you find an answer to your question?

10 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

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


benvk
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • July 19, 2023
nielsgerrits wrote:

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+54
benvk wrote:

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+32
  • Influencer
  • 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+54
ebygomm wrote:

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+32
  • Influencer
  • Best Answer
  • July 19, 2023
nielsgerrits wrote:

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+54
nielsgerrits wrote:

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+49
ebygomm wrote:

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+7
  • Author
  • Contributor
  • July 19, 2023
benvk wrote:

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+7
  • Author
  • Contributor
  • July 24, 2023
nielsgerrits wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings