Created
July 2, 2020 15:19
-
-
Save MatthewJBloom/9453b1d7959cf0e7ed66205c0ee7d715 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"customer_id": "5cd2ead33a66f988513c604f", | |
"customer_name": "CTS", | |
"object_name": "opportunity", | |
"goal": "replace close_date with create_date in dedupe key" | |
}, | |
{ | |
"targets": { | |
"autotask1": "opportunity/fields/CREATEDATE", | |
"hubspot_crm0": "deal/fields/CREATEDATE" | |
} | |
}, | |
{ | |
"autotask1 patches": [ | |
{ | |
"path": "opportunity/fields/CLOSE_DATE", | |
"value": { | |
"label": "Create Date (Dedupe Key)", | |
"type": "datetime", | |
"path": "CreateDate", | |
"readOnly": false, | |
"required": true, | |
"translate": { | |
"date": { | |
"format": "YYYY-MM-DD HH:mm:ss" | |
} | |
} | |
} | |
}, | |
{ | |
"path": "opportunity/fields/CLOSED_DATE", | |
"value": { | |
"label": "Closed Date", | |
"type": "datetime", | |
"path": "ClosedDate", | |
"readOnly": false, | |
"required": false, | |
"translate": { | |
"date": { | |
"format": "YYYY-MM-DDTHH:mm:ss" | |
} | |
} | |
} | |
} | |
] | |
}, | |
{ | |
"hubspot_crm0 patches": [ | |
{ | |
"path": "deal/fields/CLOSE_DATE", | |
"value": { | |
"label": "Create Date (Dedupe Key)", | |
"description": "The date the deal was created. This property is set automatically by HubSpot.", | |
"path": "properties/createdate", | |
"group": "dealinformation", | |
"type": "datetime", | |
"translate": [ | |
{ | |
"cast": { | |
"denormal": "str" | |
} | |
}, | |
{ | |
"date": { | |
"unix": true, | |
"precision": 1000 | |
} | |
} | |
] | |
} | |
}, | |
{ | |
"path": "deal/fields/EXPECTED_CLOSE_DATE", | |
"value": { | |
"label": "Expected Close Date", | |
"description": "The expected close date of the deal", | |
"path": "properties/closedate", | |
"group": "dealinformation", | |
"type": "datetime", | |
"translate": [ | |
{ | |
"cast": { | |
"denormal": "str" | |
} | |
}, | |
{ | |
"date": { | |
"unix": true, | |
"precision": 1000 | |
} | |
}, | |
{ | |
"timezonefudger": { | |
"denormal": { | |
"offset": "T12:00:00Z" | |
}, | |
"normal": { | |
"offset": "T00:00:00Z" | |
} | |
} | |
} | |
] | |
} | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment