Custom Website Page to Pull Company Details from Hubspot
SOLVE
Hello all,
For internal use, I want to develop a page which displays the list of all the companies present in our Hubspot account. But looks like my code doesn't run through While loop.
Also, I am not sure if {{ company_domain}} is correct. I don't want my company domain. I want Contacts Company domain.
Custom Website Page to Pull Company Details from Hubspot
SOLVE
@mansigovani Yes, unfortunately, due to security reasons, a multitude of Hubspot's APIs can't be used directly on Hubspot because they'd either need to be written in something other than Javascript or use Ajax with CORS (which Hubspot doesn't allow to be set). You would need to make the request to the API on an external site.
If this answer solved your question, please mark it as the solution.
I apologize for the delay in getting back to you. I am wondering if you were able to resolve this or if you still need assistance on this matter? If so, could you please share the URL?
Thank you
Sharon
Did you know that the Community is available in other languages? Join regional conversations by changing your language settings !
No, I am nowhere near completion on that project. I tried a couple of different methods but I was not able to figure out the solution for it.
Your help will be much appreciated.
Just a brief idea of what I want as a result: A custom web page, where I can filter three of my Hubspot Company properties: Country, State, and Customer Type. Based on those results, I should be able to get all the companies that match the filter criteria (Just like the HubSpot CRM Companies Page) but a web page.
I hope that makes sense and you will be able to help me out here.
Any Hubl property variables are only going to pull the contact properties associated with the current user. To output a list of all companies or particular properties you would need to use the Hubspot API.
Thank you for your quick response. Earlier I talked to HubSpot support, and he coordinated with developers on this. Please see the attached screenshot.
Custom Website Page to Pull Company Details from Hubspot
SOLVE
@mansigovani Yes, unfortunately, due to security reasons, a multitude of Hubspot's APIs can't be used directly on Hubspot because they'd either need to be written in something other than Javascript or use Ajax with CORS (which Hubspot doesn't allow to be set). You would need to make the request to the API on an external site.
If this answer solved your question, please mark it as the solution.