APIs & Integrations

AK_SKY
Member

Forms -populating drop down from an external source

Would like to populate a drop down in a form by querying a field in our Dynamics CRM. (or could be some other database)

 

a) Is it possible?

b) How to do this?

c) Helpful links

 

Thanks!

0 Upvotes
1 Reply 1
lscanlan
HubSpot Alumni
HubSpot Alumni

Forms -populating drop down from an external source

Hi @AK_SKY,

 

I think what you're really asking here is: is it possible to create a contact property via API? In which case it is, and you can find the documentation for it here: https://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property. The data type for the property would be "enumeration", and you could choose "select" for the form field type. You should be able to see it from the example JSON in the right sidebar, but you'll pass the options in as an array to an options field. And then once the property is created, you can select it from the form editor. As for pulling the values from your external CRM, I would imagine they also have an API, so it would be just a matter of pulling those property values and then adding them into the JSON for the HubSpot API.

 

Let me know if you have any questions about this one.

 

Leland Scanlan

HubSpot Developer Support
0 Upvotes