Lets say you want to wire up an e-mail notification after someone registers for an event. Start by creating your email. Once you have the bulk of your content, start to replace the variables with HAPI variables.

For example, remove the name of the event and put {@[email protected]}. Once these are in place, you need to add the following code to your outer most element.

data-pv-component="event" data-pv-type="eventview" data-pv-parameters="{event_no: {@[email protected]}}"

Please note that once you add this, editing the text has to be done in the HTML

Once the e-mail is triggered, it will include the dynamic data.

Did this answer your question?