Skip to content

Instantly share code, notes, and snippets.

@MatthewJBloom
Created May 29, 2020 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MatthewJBloom/7a8460ca72d96511aa673dba07f15b3d to your computer and use it in GitHub Desktop.
Save MatthewJBloom/7a8460ca72d96511aa673dba07f15b3d to your computer and use it in GitHub Desktop.
avertium dedupe key patch
{
"5e2f11056ac61c0576bf4693 Avertium": "dedupe key swap for companies",
"targets": {
"hubspot": {
"Company ID": "properties/hs_object_id"
},
"connectwise": {
"Hubspot Company ID": "customFields/107"
}
},
"hubspot patches": [
{
"path": "company/fields/COMPANY_NAME",
"value": {
"label": "Company ID (Dedupe Key)",
"description": "The unique ID for this company. This unique ID is automatically populated by HubSpot and cannot be changed.",
"path": "properties/hs_object_id",
"group": "Company",
"readOnly": true,
"type": "number",
"translate": [
{
"cast": {
"denormal": "str"
}
}
]
}
},
{
"path": "company/fields/ACCOUNT_NAME",
"value": {
"label": "Name",
"description": "The name of the company or organization. Powered by HubSpot Insights.",
"path": "properties/name",
"group": "Company",
"type": "text",
"translate": [
{
"cast": {
"denormal": "str"
}
}
]
}
}
],
"connectwise patches": [
{
"path": "company/fields/COMPANY_NAME",
"value": {
"path": "customFields/107",
"type": "number",
"label": "HubSpot Company ID",
"required": false,
"readOnly": false
}
},
{
"path": "company/fields/ACCOUNT_NAME",
"value": {
"path": "name",
"type": "text",
"label": "Name",
"required": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment