Displaying data from a custom object in an email
Hi
I'm very new to velocity scripting and I'm looking for some help. Here is my use case:
Our customers often want to know what the carbon footprint of our products will be for their particular project. We have a carbon calculator which will do the calculation for them and offer alternative. We offer to send them the data by email.
They may request more than one set of data at different times.
The email should trigger when the customer fills out the form with their name email company etc.
The velocity script will need to target the most recently added custom object for any given customer record and display all the targeted fields in the custom object in a table. The html part is no problem, but the script part is. I've read some of the developer docs, but I can't see the wood for the trees... Any help would be gratefully received.
Thanks