I am planning on using the HubDB feature to create a daily digest to my customers. The data will be located in HubDB and need to be refreshed on daily basis so we always have the latest data rendering in our email prior to send.
I was able to fetch data from HubDB into my email template, so this part is fine for me.
However i have 2 major concerns:
- Is it possible to populate HubDB tables from my backend ? What are the most convenient ways to dynamically populate the HubDB tables ?
- How should i set the logic to populate the email content with respect to a certain user, and then send this content to the user that should actually receive it.
In other words, how can i send the content associated to John, to John, and the one associated to George, to George.
I can’t find the logic yet to do so, like how to show certain data from HubDB tables with respect to the recepient.
If you mean something outside HubSpot - you’ll most likely have to code something by yourself with the HubDB API. If you want it to have “marketer friendly” I could imagine something like an Excel macro something similar.
If you have build a custom module to display the informations from HubDB you could set up a few smart-rules in the module directly in the mail.
Just a thought (might be overengineered):
You
create a new HubDB column with options you’d like to filter by
add a select for those options to your module
create a new property with the the options you’d like to filter by
create a new workflow which will add the required option per user
create new lists for each option
set the smart-rules depending on the list membership
change the selected option in the module
Example for module
{% set hubdbRow = hubdb_table_row('123456789', module.interessts )%}
{% for content in hubdbRow %}
...
{% endfor %}