APIs & Integrations

RintoIgnatious
Member

External API call in HubSpot form

SOLVE

Hi All,

I am new to HubSpot, and I wondered if I could make an external API call from Hubspot. With on click of submit button and I want to pass the data which the user will type in my form. 

Thanks in Advance

0 Upvotes
1 Accepted solution
webdew
Solution
Guide | Diamond Partner
Guide | Diamond Partner

External API call in HubSpot form

SOLVE

Hi @RintoIgnatious ,

Try to use ajax or serverless functions to make external api-call .To get more info about serverless functions refer to this doc https://developers.hubspot.com/docs/cms/data/serverless-functions.

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

View solution in original post

2 Replies 2
webdew
Solution
Guide | Diamond Partner
Guide | Diamond Partner

External API call in HubSpot form

SOLVE

Hi @RintoIgnatious ,

Try to use ajax or serverless functions to make external api-call .To get more info about serverless functions refer to this doc https://developers.hubspot.com/docs/cms/data/serverless-functions.

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

dennisedson
HubSpot Product Team
HubSpot Product Team

External API call in HubSpot form

SOLVE

@RintoIgnatious 

You can customize the form to include an onFormSubmit callback.  Here is a link to the documentation

Another option (possibly better) would be to create a workflow with a custom coded action that would triggered on submit.  This does require Operations Hub professional tier, though.

@Bryantworks  might have a better suggestion 😀

0 Upvotes