How to get HubSpot User fields returning label instead of internal value

Hi there,

We are using API to pull data to our database and we would like to pull a HubSpot User Field there. However, when the data is pulled, it is returning as a string of numbers which is the internal value. Is there any ways to return the data as the label?

Hi @WChi

A similar topic has been previously discussed in the community, and I’ve included a reference link for your convenience

Solved: HubSpot Community - Custom Properties - label vs internal value - HubSpot Community

Take a look and see whether it helps to sovle your use case.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Hi @Humashankar , unfortunately thats not what i’m looking for. I have manage to find a workaround way by setting up a new property and reassign based on workflow.

Hi @WChi

I’m glad you could find a workaround.

Hi WChi,

Could you please share your workaround with me?

Thanks in advanced!

Hi Taufik, sure. I set up a new dropdown property and reassign the user field using workflow. Basically, you would have two similar field with just different field type. One will be dropdown and another a HubSpot User. You would then create a workflow to update the dropdown select field based on the selected HubSpot user mapping the names using branch feature. It’s a tedious process but it solves the issue. You can also set up a checking mechanism to inform you when a new HubSpot user is selected and it mapped in your workflow to keep it up to date. Hope this helps.

Hi @WChi

"Regarding the retrieval of the label from the API, I wanted to clarify some information. Unfortunately, we are unable to retrieve the label directly from the API. However, I have identified an alternative approach to achieve this.

To obtain the label, you will need to follow these steps:

1. First, please obtain the internal value of the HUbspot user field.
2. Once you have the internal value, you will then need to access the Properties API to perform a lookup and retrieve the corresponding label.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!

Hi @GRajput, can you share how we can obtain the internal value of HubSpot user? My developers tried several ways but did not work.