Skip to content

Instantly share code, notes, and snippets.

@MatthewJBloom
Created May 21, 2020 16:14
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/6ec42b52a2f4d700aa628a19809a8608 to your computer and use it in GitHub Desktop.
Save MatthewJBloom/6ec42b52a2f4d700aa628a19809a8608 to your computer and use it in GitHub Desktop.
{
"goal": "dedupe key swap from opp/close_date to opp/first_appointment_date",
"targets": {
"dynamics": "bdo_firstappointment",
"hubspot": "properties/hs_date_entered_appointmentscheduled"
},
"dynamics patches": [
{
"path": "opportunity/fields/CLOSE_DATE",
"value": {
"path": "bdo_firstappointment",
"label": "First Appointment (Dedupe Key)",
"type": "datetime"
}
},
{
"path": "opportunity/fields/ESTIMATED_CLOSE_DATE",
"value": {
"path": "estimatedclosedate",
"label": "Est. Close Date",
"type": "datetime"
}
}
],
"hubspot patches": [
{
"path": "deal/fields/CLOSE_DATE",
"value": {
"label": "Date entered Appointment Scheduled (Dedupe Key)'",
"description": "The date and time when the deal entered the 'Appointment Scheduled' stage, 'Sales Pipeline' pipeline",
"path": "properties/hs_date_entered_appointmentscheduled",
"group": "dealinformation",
"readOnly": true,
"type": "datetime",
"translate": [
{
"cast": {
"denormal": "str"
}
},
{
"date": {
"unix": true,
"precision": 1000
}
}
]
}
},
{
"path": "deal/fields/EXPECTED_CLOSE_DATE",
"value": {
"label": "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