APIs & Integrations

shaebert
投稿者

GET Form Submissions from non-HubSpot site.

解決

Hello, we use the HubSpot JavaScript code on our website to collect form submissions. When some submits a form on our site, they are either added to HubSpot, or their data is updated in the activity timeline. I'd like to get this data out of Hubspot. I have tested the Form API/Engagement API, and can't seem to find the data. What API can I use to retrieve this? 

0 いいね!
1件の承認済みベストアンサー
piersg
解決策
キーアドバイザー

GET Form Submissions from non-HubSpot site.

解決

Hi @shaebert, I think you could use one of two methods:

 

1. Use the Get recently updated and created contacts endpoint

2. If you're embedding the form via JS you can use the onFormSubmit method (detailed here) to do additional tasks when the form is submitted e.g. send the relevant data somewhere:

 

hbspt.forms.create({
      portalId: '[PORTAL ID]',
      formId: '[FORM ID]',
      onFormSubmit: function($form) {
        // YOUR SCRIPT HERE
        } 
});   

 

元の投稿で解決策を見る

1件の返信
piersg
解決策
キーアドバイザー

GET Form Submissions from non-HubSpot site.

解決

Hi @shaebert, I think you could use one of two methods:

 

1. Use the Get recently updated and created contacts endpoint

2. If you're embedding the form via JS you can use the onFormSubmit method (detailed here) to do additional tasks when the form is submitted e.g. send the relevant data somewhere:

 

hbspt.forms.create({
      portalId: '[PORTAL ID]',
      formId: '[FORM ID]',
      onFormSubmit: function($form) {
        // YOUR SCRIPT HERE
        } 
});