After Merging Contact API Unable to Set Associated Company
After 2 contacts have been merged it is possible that in the HubSpot UI the contact shows that it is associated with a company, however the API may indicate that no company is associated. Here is an example of such a contact:
When retrieving that contact via the HubSpot API (using e.g. get all contacts endpoint /contacts/v1/lists/all/contacts/all) you will notice the "associatedcompanyid" is blank:
Retrieving this same contact via the API with property history shows the most recent value for associated company was set by RollupPropertes and is "" (no company) - so the UI is incorrectly showing a compnay association:
If we then attempt to assign a company to this contact (using the batch endpint POST /contacts/v1/contact/batch/). This is a post that we commonly use (with success) to associate companies and contact, example:
I suspect this is a bug that was recently introduced as had not seen it until ~ 1 month ago. It causes problems as, from the perspective of the integration, the set-company-association appeart to have failed, and so it continues to retry ... and continues to fail.
After Merging Contact API Unable to Set Associated Company
Any updates @dennisedson? This issue is ongoing & painful to work around (latest example: portal 6919540, contact id: 7327, I have just manually resolved)