Skip to content

Commit 971acdb

Browse files
authored
Apply suggestions from code review
1 parent fb45031 commit 971acdb

File tree

1 file changed

+4
-8
lines changed
  • src/connections/destinations/catalog/actions-hubspot-cloud

1 file changed

+4
-8
lines changed

src/connections/destinations/catalog/actions-hubspot-cloud/index.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ Search Fields to associate | This finds a unique record of custom object based
6565
ObjectType to associate | To associate the newly created and updated custom object record with another object type, select the object type you want it to be associated with.
6666
Association Label | Select an association label between both the object types. From the HubSpot Dashboard, you can create associations between any type of object. To create an association label: <br>1. Log in to the [HubSpot Dashboard](https://app.hubspot.com/){:target="_blank"}. <br>2. Go to **Data Management > Objects > Custom Objects**. <br>3. Go to the **Associations** tab and click **Create association label**.
6767

68-
## FAQ and troubleshooting
69-
70-
### Why am I receiving a, "Contact already exists" error?
71-
This will only apply to integrations with two mappings that could create profiles in HubSpot.
72-
1. Initially, the Upsert Contact action seeks to update an existing contact.
73-
2. If no contact is found, a subsequent attempt is made to create a new contact, potentially leading to three separate HubSpot API requests. For instance, an 'Expired Authentication' error may occur if the token expires on the initial request, prompting a token refresh and a subsequent request.
74-
3. If the next error indicates 'resource not found', it means the contact wasn't located, leading to a second attempt to create the contact. However, this attempt might fail due to a 'Conflict' error, suggesting the contact already exists. This situation can arise if another mapping is activated, causing the contact to be created by the time the Upsert Contact Action attempts its final contact creation request, due to the Custom Behavioral Event Action being triggered as well.
75-
Consequently, this error is displayed in the event delivery tab within Segment's UI.
68+
## FAQs and troubleshooting
69+
70+
### Why am I receiving a `Contact already exists` error?
71+
This error only applies to integrations with 2 mappings that can create profiles in HubSpot. Initially, the Upsert Contact action seeks to update an existing contact. If no contact is found, a subsequent attempt is made to create a new contact, potentially leading to 3 separate HubSpot API requests. For example, an `Expired Authentication` error may occur if the token expires on the initial request, prompting a token refresh and a subsequent request. If the next error indicates `resource not found`, it means the contact wasn't located, leading to a second attempt to create the contact. However, this attempt might fail due to a `Conflict` error, suggesting the contact already exists. This situation can arise if another mapping is activated, which causes the contact to be created by the time the Upsert Contact Action attempts its final contact creation request, due to the Custom Behavioral Event Action being triggered as well.
7672

7773
### How do I send other standard objects to HubSpot?
7874
Segment provides prebuilt mappings for contacts and companies. If there are other standard objects you would like to create records in, please use the **Create Custom Object Record** action. For example, to create a deal in HubSpot, add a mapping for Create Custom Object Record, set up your Event Trigger criteria, and input a literal string of "deals" as the Object Type. You can use the Properties object to add fields that are in the [deals object](https://developers.hubspot.com/docs/api/crm/deals){:target="_blank"}, such as `dealname` and `dealstage`. The same can be done with other object types (for example, tickets, quotes, etc). Ending fields that are to go to HubSpot outside of the properties object isn't supported. This includes sending [associations](https://developers.hubspot.com/docs/api/crm/associations){:target="_blank"}. Please note, Segment only supports creating new records in these cases; updates to existing records are only supported for contacts and companies.

0 commit comments

Comments
 (0)