We are using the CRM API to obtain contacts data, but the data displayed in the UI differs from the data obtained from the API.
The contacts data appears to have been updated, but the API does not retrieve it.
The data displayed in the UI for the some of the custom property are not the same as the data returned by the API
Please let me know how we can get the most recent value from the API.
Hi @SnirYadid,
Thank you for reaching out to the Community!
I wanted to tag in a couple of subject matter experts to see if they have any advice:
Hi @Mike_Eastwood, @Bryantworks, @MatthiasKunz, do you have any tips for @SnirYadid? Thank you!
Cheers
Mia, Community Team
hello @SnirYadid , @MiaSrebrnjak
so there could be a few mechanisms at play here: we have seen a number of cases where contact data would be entered in the UI but not saved. The API of course will only pick the update up once the data has been saved.
That not being the case there may be a case where a custom property changed for a new one of the same name, and the API call still goes looking for the “old” version; in this case an update to the API call would help.
What is also a possible issue is using list endpoints. We have seen cases where a list endpoint would not return properties on individual objects correctly, leading to standard practice of combining list and then get calls.
If you can share the call you are making, we might be able to dig a little deeper here, in case none of the above applies:)
Hello there,
This is the endpoint we used to retrieve the contact data:
https://api.hubapi.com/crm/v3/objects/contacts?properties=hs_object_id%2Ccreatedate%2Clastmodifieddate%2Cfirstname%2Clastname%2Cemail%2Cstato_cliente
Attached is a screenshot of a response example that contains an incorrect
value for the stato_cliente custom field, which is “chiuso ko” when it
should be “morto”.
[image: image.png]
Hello @SnirYadid
unfortunately, I cannot see the screenshot here - the endpoint looks fine to me in any case. Does the problem appear only for recently modified properties or also for modifications that are longer ago (let’s say more than a couple minutes)?
The changes are from a month ago. It is not a new one.
Hi @SnirYadid ,
it looks like something went wrong with the attachment in your post, could you try that one again?
Cheers
Sure.
Attached is a screenshot of a response example that contains an incorrect
value for the stato_cliente custom field, which is “chiuso ko” when it
should be “morto”.
Hello all.
We found some more information to share.
We discovered that the API request to get contacts(
Accounts Dashboard | HubSpot) - return’s property “id” instead of the property label.
{
“stato_cliente”: “chiuso ko”, “lifecyclestage”: “lead”,
“stato_chiusura_ko”: “Da recuperare”,
“motivo_chiusura_ko”: “Non rispondono”,
}
The client see in the ui the label of “stato_cliente” property “morto”
We indemnify’d it by asking this endpoint: https://api.hubapi.com/properties/v1/contacts/properties/named/stato_cliente
{
“value”: “chiuso ko”,
“readOnly”: false,
“hidden”: false,
“label”: “morto”,
“description”: null,
“doubleData”: null,
“displayOrder”: 6
}
https://api.hubapi.com/properties/v1/contacts/properties/named/lifecyclestage
{
“value”: “lead”,
“readOnly”: null,
“hidden”: false,
“description”: null,
“displayOrder”: 1,
“doubleData”: null,
“label”: “Lead”
}
https://api.hubapi.com/properties/v1/contacts/properties/named/stato_chiusura_ko
Can we get the label of the named property in the response of Accounts Dashboard | HubSpot
Hello there.
Are there any updates, please?
Hello @SnirYadid, thanks for pushing on his topic again. In order to help you further, we would probably need more context here.
Can you show the full API calls and responses you are using and please point out what is wrong in them? Reading the thread again, I am not quite sure what you are looking for?