Nov 26, 20209:23 AM - edited Nov 26, 202010:43 AM
Member
Geting a contact by its user token for already exisitng contact doesn't return the contact.
Hi,
We have an issue with particular contact in HubSpot with which we perform tests.
In our site we have integrated our forms to send data to HubSpot when they are submitted and then we retrieve the HubSpot Contact by its user token to get his data.
We isolated the steps which are the following:
1. We are opening a new incognito browser and navigating to the page where our form is. When a new browser is opened a new hubspotutk cookie is generated.
2. We want to associated this hubspotutk cookie with a contact which already exist in HubSpot. For this to happend we submit the form with our test email which already exist in HubSpot as a Contact.
3. After the submission we are trying to get our test contact by the hubspotutk cookie but as a result it doesn't return the contact only returns this JSON with 5 properties. We expect that this cookie will be associated with the existing contact in HubSpot.
This problem appeared recently and we noticed it when our tests started to fall.
Is there any way this email to be blocked because it is used constantly or something else is happening. We try with other existing contacts in HubSpot we couldn't reproduce the problem with them, only with the test one.
Geting a contact by its user token for already exisitng contact doesn't return the contact.
I have noticed that it may also relate to the ip adress being used to fill the form. Do you have the same problem when reaching that same form from an other ip adress?
Secondary you can create your own contact property (named usercookie for description purpose). Then you can search your contacts using API where you search all contacts with the property usercookie x. You can then return any contact property such as user email or user id and pretty much do anything from there with the contacts api. Look at the API documentation for more info or reply for further help.