Hi Everyone - hoping someone with more Marketo expertise can help me better understand how to use custom object triggers to send emails to our customers. I'm relatively new to Marketo myself and have never used custom object before. Here is the situation:
I've read over using triggers on custom objects and using custom object to create smartlists for a scheduled recurring batch, but I'm not sure how to approach set-up to make sure all our emails are sent appropriately.
I'd love any recommendations and advice!!
Thanks!
- So if a person had 5 virtual events yesterday, they should receive 5 separate recap/analysis emails - one for each event.
This is good, because the opposite requirement — everyone gets a single email with all their objects created in a time period — is very hard to get right.
Just trigger on Added to {Custom Object Name}.
You will also need to use a Velocity {{my.token}} ("Email Script" token) to output the data from the ${TriggerObject} (Marketo sets the special variable ${TriggerObject} to the object that triggered the flow, which is very convenient!).
Thank you! Is there a way to use a date filter with the trigger? The data we will be sending in will be added to the custom object before we actually want the email to send. We want the email to send the day after the event is hosted, but the event details will be added to the custom object way before then in most cases.
You'll need to use a batch, then (to filter by notification date = today).
This causes the complications I alluded to above, though. If you have more than one record that is supposed to be sent "today" you will not be able to qualify the person more than once.
You'll need to add another field to the CO. For example, an Integer field Index. You increment that by 1 for each new record added during the same day. Then have multiple batches running, each filtering by a different Index. (there will naturally be a hard-coded max number of records based on the number of batches).