Contact List Custom fields keys are not changing

Hello everyone,
I am trying to rename a custom field in Contact list. I did rename it but the “key” for that field remained the same.
I renamed my custom field from BuildingNo to Building Number.
But when I am trying to retrieve user data, this is what I am getting as field name:

Shouldn’t the field key change as soon as I rename it?
Thanks!

Hey Marko,

As you mentioned, what you’re changing when you rename the field is really the label. So when you rename the field using the UI to “Building Number”, it’s keeping the original key as an identifier. Using the UI, I don’t think there’s a way to change the key as yet.

What I had to do with labels (similar concept) was create a new label with the desired key using Find or Create Label and if you want, you can rename it right afterward using the returned key.

In your case, if you want to migrate to a new CRM Custom Field (Extended Fields in the API), you could query all of the contacts, and run an update for each of the contacts with the new Custom Field.

Thanks for the response Chris!

I did not know that renaming it won’t change the key, so thanks for that as well :slight_smile:

The problem is that I renamed them several times so far and I can’t find their key now. How can I see what was their original key?
I am trying to update Custom User Fields but I cant get it to work because of the keys probably…