Hello Community,
I have a custom date picker field contract_start_date on deals. I am using private apps and following patch API call:
https://api.hubapi.com/crm/v3/objects/deals/10721724537
JSON Body is:
{
“properties”: {
"contract\_start\_date": "1572480000000"
}
}
But i get following error:
Property values were not valid: [{\“isValid\”:false,\“message\”:\“Property \\\“contract_start_date\\\” does not exist\”,\“error\”:\“PROPERTY_DOESNT_EXIST\”,\“name\”:\“contract_start_date\”}]
Need urgent help!
Hi there,
Are you able to confirm the internal name of your property?
For example, my property labelled amount would have an internal name as such (both similar):
My suspicion is that you could have created the label as contract_start_date and the internal name could be different, hence the error you’re getting.
Cheers
WL
HEllo Lee,
Thanks for responding.
I checked in hubspot and the Label of the property is Contract Start Date and the schema/logical name of the field is contract_start_date. I am attaching the screenshot
Hi there,
Are you sure you’ve created the property in the correct place? I too did (create the exact same property name) try out be sure, and your JSON body is valid and I could update my deal object successfully.
Could you have created the property under Contacts instead? Because when you first land on the properties page, it is Contacts by default:
Cheers
WL
As you can see, we have updated values from our external application - so far successfully. The wrinkle came when I created a new Customer Date Picker property ‘last_api_update’ - but it doesn’t populate the property. Are we doing something wrong either in the definition of our property or the definition of the API string?
Any and all assistance will be greatly appreciated!
Yoel