Re: Email Subject or Body in Webhook generated dynamically want resolved velocity text

DhruvThakker
Level 1

How to get Email Subject or Body which are generated dynamically for a campaign smartlist with velocity. 
Want to know exactly what was sent to a lead after resolution of velocity script. Lead has multiple custom object and email velocity scripts uses that as input and generates email body. What to figure exactly what email was sent to a lead

 

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

@DhruvThakker please return to your thread and check replies.

SanfordWhiteman
Level 10 - Community Moderator

This can’t be known directly. It may only be simulated by calling a webhook right after the send that reads the Custom Object list and writes a Custom Activity with the data at that point in time.

DhruvThakker
Level 1

Didnt get you. I would have to capture the custom object in webhook? How do I get the object used while sending the email ?

SanfordWhiteman
Level 10 - Community Moderator

The webhook (more precisely, the webhook-compatible service) uses the REST API. It reads the CO list and applies the same order/filtering logic you do in Velocity. That lets you generate the same output, then write it back as attributes of a new CA.