We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
May 27, 2021 5:34 PM
I am attempting to add a property to contacts and set it as a unique value. I'm following the instructions given here to achieve this via the API. However, the API prevents me from doing so. Here is the request and response:
There is a loosely related issue posted here where a response by a HubSpot Employee is very similar but not the same as what I'm seeing. It's currently under review.
Related to this issue, I tried to look up a contact using `idProperty` of a custom property "uid" which I created. I get an error saying "Contacts may only be looked up by 'email' as part of the unique property value request." This post references this exact issue and indicates that this issue is resolved - I find that to not be the case.
Seeing the error subCategory `Properties.CANNOT_SET_CONTACT_HAS_UNIQUE_VALUE` indicates this is intentional, but related discussions in forums and the lack of documentation around this restriction make me question that. Is this a true requirement?
We really need the ability to set and search by our own unique identifier for our contacts. Any help to that end would be deeply appreciated.
Solved! Go to Solution.
Jun 1, 2021 3:02 PM
Jul 14, 2021 5:56 AM
Hi @dennisedson some of our customers have been contacting support re: the info shared above. Do we have any timelines on transitioning the contact objects to the latest version? Nothing I could see internally so it would be great if we have any specific postings to track either internally or externally for the customers?
Oct 19, 2021 6:46 PM
Also interested to know if/when this will be updated. I was able to set this value to true on custom objects just fine but have not been able to for contact & company object.
Oct 20, 2021 10:13 AM
Unfortunately, I do not have a solid timeline. It is being worked on!
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
Jun 1, 2021 3:02 PM
Jun 1, 2021 3:25 PM
Is that something I can/need to do? (I'm new to the community and unaware of how everything ties together)
Jun 2, 2021 11:50 AM
@tysmithlondr , you can. It is here. But for this specific case, I don't think you need to as once we get the contacts object fully transistioned to the latest API, that property will be released from being read only
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
May 31, 2021 8:16 AM
Documentation around this topic is poor.
I get the same response as @tysmithlondr and can not create a hasuniquevalue for contacts either.
Reading up on contact properties (refered to from the properties API) https://knowledge.hubspot.com/contacts/hubspots-default-contact-properties it states nothing about this.
Forward to product team if possible:
So - lack of documentation concerning the hasUniqueValue parameter. What objects are allowed to use this parameter?
Jun 1, 2021 2:55 PM
@MichaelC , I believe the contact object is the exception to the rule. It is due to some transitions from v1 - v3 so it won't always be the case
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
May 28, 2021 12:15 PM
@MichaelC , would you be able to assist here 😀
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |