APIs & Integrations

tysmithlondr
Teilnehmer/-in

'hasUniqueValue' cannot be set on a contact property

lösung

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:
 Screen Shot 2021-05-27 at 3.08.49 PM.png

 

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. 

1 Akzeptierte Lösung
MichaelC
Lösung
Ratgeber/-in | Partner
Ratgeber/-in | Partner

'hasUniqueValue' cannot be set on a contact property

lösung
Well then we have an answer. Its simply not possible and if we want it we need to put it to the ideas board.


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:

Lösung in ursprünglichem Beitrag anzeigen

9 Antworten
gcummins
HubSpot Employee
HubSpot Employee

'hasUniqueValue' cannot be set on a contact property

lösung

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? 

mcannizzo
Teilnehmer/-in | Elite Partner
Teilnehmer/-in | Elite Partner

'hasUniqueValue' cannot be set on a contact property

lösung

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.

0 Upvotes
dennisedson
HubSpot-Produktteam
HubSpot-Produktteam

'hasUniqueValue' cannot be set on a contact property

lösung

@mcannizzo ,

Unfortunately, I do not have a solid timeline.  It is being worked on!

MichaelC
Lösung
Ratgeber/-in | Partner
Ratgeber/-in | Partner

'hasUniqueValue' cannot be set on a contact property

lösung
Well then we have an answer. Its simply not possible and if we want it we need to put it to the ideas board.


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:

tysmithlondr
Teilnehmer/-in

'hasUniqueValue' cannot be set on a contact property

lösung

Is that something I can/need to do? (I'm new to the community and unaware of how everything ties together)

0 Upvotes
dennisedson
HubSpot-Produktteam
HubSpot-Produktteam

'hasUniqueValue' cannot be set on a contact property

lösung

@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

MichaelC
Ratgeber/-in | Partner
Ratgeber/-in | Partner

'hasUniqueValue' cannot be set on a contact property

lösung

@dennisedson 

 

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?



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-Produktteam
HubSpot-Produktteam

'hasUniqueValue' cannot be set on a contact property

lösung

@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

0 Upvotes
dennisedson
HubSpot-Produktteam
HubSpot-Produktteam

'hasUniqueValue' cannot be set on a contact property

lösung

@MichaelC , would you be able to assist here 😀

0 Upvotes