CMS Development

SLad
Member

Snake Casing HubSpot fields

Hubspot fields requires snake casing. for that do you have any api or regex to convert hubspot field names into snake casing?

 

i have tried with some regex but in some scenarios it is not converting field as hubspot needed

0 Upvotes
3 Replies 3
Gonzalo
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Snake Casing HubSpot fields

Hi @SLad, can you explain a bit further what is your situation?
Are you trying to define new HubSpot fields for custom modules, contacts...?
Where is your data coming from, and what are you trying to achieve?

If this answer helps you to solve your questions please mark it as a solution.

Thank you,


Gonzalo Torreras

HubSpot freelance developer

hola@gonzalotorreras.com
www.gonzalotorreras.com
Schedule a meeting
0 Upvotes
SLad
Member

Snake Casing HubSpot fields

I wanted to convert my pascal casing field name to HubSpot internal name casing.

 

When I create any property in HubSpot it has an internal name- based on the label it converts the label into the specific format as the internal name of the property.

SLad_0-1645732892534.png

 

I have the field as "ExteriorCnstruction" and wanted to match this field with Hubspot field internal name. How do i convert "ExteriorCnstruction" to "exterior_construction" this name? 

 

do you have any any regex or format for this internal name conversion?

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Snake Casing HubSpot fields

@Gonzalo , any thoughts here?

0 Upvotes