1 of 1 people found this helpful
You should be able to use Velocity Email Script tokens for this purpose. You will have to create 'Script token' at program level with appropriate script code in them. And in your email, you would be able to merge that 'script token' (instead of the custom object directly).
This way, you can do things like, (assuming you store all the licences a lead owns in a custom object), print 'First licence bought', or 'Last licence bought', 'total number of expired licences', 'total number of active licences etc'. You will just create appropriate code in the corresponding email script token.
In your post you mentioned 'email template' also. I think you meant email and not 'email template'. Since email script tokens are defined at program level, you can not merge them in a 'global' email template you define in Design Studio.
Hope this helps