Hi,
I’m building a Rails app and have intergated Hubspot to handle several things. What I would like to do now is to add a form on my app where users can enter an email address and call the API to add this email address to a mailing list in hubspot.
Is that something that is possible with Hubspot? I’ve looked to the documentation but havn’t found the perfect match!
Thanks for your help!
Hi @RMANTELLO , thanks for your post.
When you say “a mailing list in hubspot”, what exactly are you referring to? Is it one of your contact lists?
Hi @JBeatty , do you have a suggestion on this topic?
Hi @RMANTELLO,
Thanks for the mention @natsumimori. Though Rails is outside my experiences I do have some suggestions that you could look into RMANTELLO. Going forward I am going to assume a mailing list is a HubSpot contact list, please let me know if this is incorrect. The first idea is that you could simply call the Add existing contacts to a list endpoint, which would allow you to pass either HubSpot Ids or emails and add that contact to the specified list. The other idea, which is possibly more versatile is to create a HubSpot Form and integrate that HubSpot form with your app. You could integrate that form either via a web or HTML view, or if your app does not support that you could integrate directly with the Forms API, which will allow you to make fully native forms that integrate with HubSpot. If you do go with forms, you have multiple options from adding enrollment triggers to a workflow based on form submission or enrolling them in a workflow from the form. Then once you are running workflows from a form submission you have many options for integrations or other customization on what happens on form submission.
Best,
Josh
Was I able to help answer your question? Help the community by marking it as a solution.
Thank you for your input @JBeatty !
Hi guys!
Thank you so much for your answers and sorry for my late responses!
I’ll look into what you sent me and try to make it work but it seems to
have put me on the right path already! I had indeed confused contact lists
with submissions while being a little lost in your API documentation. Back
on track now!
Have a great day and thanks again!
Raphaël Mantello