CMS Development

SLad
Membre

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 Votes
3 Réponses
Gonzalo
Contributeur de premier rang | Partenaire solutions Diamond
Contributeur de premier rang | Partenaire solutions Diamond

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 Votes
SLad
Membre

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 Votes
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Snake Casing HubSpot fields

@Gonzalo , any thoughts here?

0 Votes