Generic Email template with variable file download link
SOLVE
Hello all,
I have not seemed to find a solution to my use case and I apologize in advance if there has been a solution posted that I have not come across.
The site that we are building has a large amount of PDF report files that will be stored in HubSpot files for users to be able to access and download.
What we would like to achieve is creating a generic email template to send to our users that will contain the specified download link.
A user will fill out a form or press a download button (if they are already logged in and a known user) which will trigger an email to be sent. Within that email it should contain the download link so that they can access the PDF from the storage files.
Since there will be potentionally over 100 PDF files that can be sent it would be ideal if the file ID was some how passed along to the email to be appended to the link.
In this way we will have only one email template to maintain that can send out any one of these PDF reports that the user is interested in.
Thank you for any help or advice you can provide!!
So the very high level solution or workaround could be to:
Organize and maintain the PDFs in a HubDB table. This allows you to organize any supporting information for the PDFs and create unique dynamic pages for each PDF. This will also allow you to use 1 form.
Custom contact property to track the last PDF that was requested. This can hold the PDF's url! Form example we'll call it RECENT_PDF. This could also hold the HubDB row ID but the URL seemed more straight forward.
Form with a hidden field.
Dynamic pages or page with query string to ID the PDF the user is requesting. • On this page you'd have a script to get the data you're using to identify the PDF, and populate the hidden field. This technique has been outlined on the forums. • Now when a use submits the form RECENT_PDF will be updated with the new value.
Email with Hubl to populate the RECENT_PDF value as a link:
So the very high level solution or workaround could be to:
Organize and maintain the PDFs in a HubDB table. This allows you to organize any supporting information for the PDFs and create unique dynamic pages for each PDF. This will also allow you to use 1 form.
Custom contact property to track the last PDF that was requested. This can hold the PDF's url! Form example we'll call it RECENT_PDF. This could also hold the HubDB row ID but the URL seemed more straight forward.
Form with a hidden field.
Dynamic pages or page with query string to ID the PDF the user is requesting. • On this page you'd have a script to get the data you're using to identify the PDF, and populate the hidden field. This technique has been outlined on the forums. • Now when a use submits the form RECENT_PDF will be updated with the new value.
Email with Hubl to populate the RECENT_PDF value as a link:
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.
Generic Email template with variable file download link
SOLVE
Hi Kevin-C,
Thank you so much for your quick response!
We could identify the PDF based on the url and report down load page. So in this case a user could go to a Reports directory and see a full list of all reports available to download. From there the user could select the desired report and arrive at a brief descriptor page with a "Download Now" button (form) that would trigger the email. If the user is signed in the form would be pre-populated with their contact information and if not then they would submit their information.
The big unknown is how to get the report ID information from the report download page and into the email so we can dynamically create the desired download link.
Having specific forms for each download is also not a very good option for us since it only migrates the problem from having redundant emails to having redundant forms that would be difficult to maintain.
With all this said we are open to new approaches to downloading content providing we can track the user downloads and modularize the approach as much as possible to reduce redundancy and keep the reports easily maintainable.
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.