APIs & Integrations

HJack
Participant

Contact custom property not exist

SOLVE

I created a contact custom property which is where_you_found_us according to this https://knowledge.hubspot.com/crm-setup/manage-your-properties#create-custom-properties 
When I pass the custom property along the create contact API, it throws an Error PROPERTY_DOESNT_EXIST.

How can I resolve this? 

 

Thanks

1 Accepted solution
MichaelC
Solution
Guide | Partner
Guide | Partner

Contact custom property not exist

SOLVE
You have to go to the portal where you created the property and get a new API key. The API key is unique for each portal.

The portal that you have the custom property is not the same as the portal you are calling with your current API key.

One key per portal.


Need further help with integrations or business development?



Want to help me?

Go to the following links and read through the ideas. If you like them - give the idea an upvote

Upvote the following ideas:

View solution in original post

28 Replies 28
webdew
Guide | Diamond Partner
Guide | Diamond Partner

Contact custom property not exist

SOLVE

Hi @HJack ,

- Make sure property has been definined or Your property key can be incorrected. please try with correct property key.
Hubspot Path for properties :
- Go to settings -> properties -> go to detial of properties and check the key of that and push that value.

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

0 Upvotes
MichaelC
Guide | Partner
Guide | Partner

Contact custom property not exist

SOLVE

@HJack You are more than welcome - just happy to contribute.

 

@dennisedson team dev strikes again 🤣🕺



Need further help with integrations or business development?



Want to help me?

Go to the following links and read through the ideas. If you like them - give the idea an upvote

Upvote the following ideas:

natsumimori
Community Manager
Community Manager

Contact custom property not exist

SOLVE

It's great to see the issue is solved!!

@MichaelC @dennisedson 🕺 #teamdev4thewin🕺

 

dennisedson
HubSpot Product Team
HubSpot Product Team

Contact custom property not exist

SOLVE

now that was a thread!

0 Upvotes
HJack
Participant

Contact custom property not exist

SOLVE

The issue is fixed. I update the API key as suggest and it works.

Thanks @MichaelC @dennisedson  for helping! 🙌

MichaelC
Solution
Guide | Partner
Guide | Partner

Contact custom property not exist

SOLVE
You have to go to the portal where you created the property and get a new API key. The API key is unique for each portal.

The portal that you have the custom property is not the same as the portal you are calling with your current API key.

One key per portal.


Need further help with integrations or business development?



Want to help me?

Go to the following links and read through the ideas. If you like them - give the idea an upvote

Upvote the following ideas:

HJack
Participant

Contact custom property not exist

SOLVE

is it something I need to change in the endpoint?

0 Upvotes
MichaelC
Guide | Partner
Guide | Partner

Contact custom property not exist

SOLVE

@dennisedson and you are working in portal 14528936 when you tried?



Need further help with integrations or business development?



Want to help me?

Go to the following links and read through the ideas. If you like them - give the idea an upvote

Upvote the following ideas:

dennisedson
HubSpot Product Team
HubSpot Product Team

Contact custom property not exist

SOLVE

great call out @MichaelC !

No.  I am looking at portal 8374817 which is what is connected with @HJack email address.

The portal @HJack is referencing does not have that property.  Whereas 8374817 does

 

0 Upvotes
MichaelC
Guide | Partner
Guide | Partner

Contact custom property not exist

SOLVE

@HJack can you run this call and post what you get back here

Header: Normal headers
Body: None
Mehtod: GET
URL: https://api.hubapi.com/integrations/v1/me?hapikey=YOUR_HAPI_KEY_HERE

 

I want to tripple check the fact that the two of you are in the same portal and working. 



Need further help with integrations or business development?



Want to help me?

Go to the following links and read through the ideas. If you like them - give the idea an upvote

Upvote the following ideas:

HJack
Participant

Contact custom property not exist

SOLVE

@MichaelC   I apply as you suggest

HJack_1-1622654356375.png

and it returns 

 

HJack_0-1622654315131.png

 

0 Upvotes
HJack
Participant

Contact custom property not exist

SOLVE

this is what I receive from the request if I add where_you_found_us

 

tempsnip.png

 

0 Upvotes
HJack
Participant

Contact custom property not exist

SOLVE

Yes, go ahead

dennisedson
HubSpot Product Team
HubSpot Product Team

Contact custom property not exist

SOLVE

I was able to create a contact in postman with the following properties JSON body

{
"properties": {
"email": "dennistests@dennistestedit.com",
"firstname": "Test",
"lastname": "Contact",
"where_you_found_us": "The internet"
}
}
And I was able to verify that it was added to the portal as you can see in this screengrab

Property_Editor.png
 
Is there a way to print out the payload that to see what is actually being sent?
MichaelC
Guide | Partner
Guide | Partner

Contact custom property not exist

SOLVE

@dennisedson its time for me to throw you into the game here. We need to check API logs and portal settings to confirm the above. I need your help here 🙂 



Need further help with integrations or business development?



Want to help me?

Go to the following links and read through the ideas. If you like them - give the idea an upvote

Upvote the following ideas:

dennisedson
HubSpot Product Team
HubSpot Product Team

Contact custom property not exist

SOLVE

 

@HJack , do you have a contact record that is using that property?

I can confirm that the property does exist and I am able to use the read a property endpoint to confirm it, but I do not think there is a record using that property which makes me wonder if that is the issue.  Could you test on a contact record?

 

0 Upvotes
HJack
Participant

Contact custom property not exist

SOLVE

@dennisedson   I was trying to create a contact with that property but the request throws an Error PROPERTY NOT EXIST.  So there are no contacts with that property

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Contact custom property not exist

SOLVE

@HJack , would you be ok if I created a test contact in your account?

0 Upvotes
HJack
Participant

Contact custom property not exist

SOLVE

This is how I use hubspot API

HJack_0-1622646148096.png

 

0 Upvotes
MichaelC
Guide | Partner
Guide | Partner

Contact custom property not exist

SOLVE

 

Please provide more information about your API call

In order to better provide help I kindly ask you to provide the following:

1. The method you use (example: GET, POST, PUT, PATCH).
2. The URL you use to make the call (such as https://api.hubapi.com/crm/v3/properties/contacts)
NOTE: Remove your HAPI key token before posting it here.
3. Your request header
NOTE: Remove any access tokens if you use that in your header before posting it here.
4. Your request body (if there is one) ✔️ (already done)



Need further help with integrations or business development?



Want to help me?

Go to the following links and read through the ideas. If you like them - give the idea an upvote

Upvote the following ideas: