[
  {
    "sourceObject": "Opportunity",
    "targetObject": "deals",
    "actionType": "PushToConnector",
    "direction": "outbound",
    "mappings": [
      {
        "sourceField": "CloseDate",
        "targetField": "closedate",
        "transformExpression": "LEFT(TEXT($Record.CloseDate), 10)"
      },
      {
        "sourceField": "Allow_Close__c",
        "targetField": "allow_close__c",
        "transformExpression": "CASE(TEXT($Record.Allow_Close__c), \"1\", \"true\", \"true\", \"true\", \"false\")"
      },
      {
        "sourceField": "Name",
        "targetField": "dealname"
      },
      {
        "sourceField": "Type",
        "targetField": "pipeline",
        "transformExpression": "BLANKVALUE($Record.Type, \"New Subscription\")",
        "valueMap": {"New Subscription":"4438506d-992f-4b53-a548-33cc7e2dff15","Expansion":"3f331b33-28d7-49c5-81f0-64d4139e389b","Renewal":"a037ad63-5829-428a-8d7b-7136c6953440"}
      },
      {
        "sourceField": "StageName",
        "targetField": "dealstage",
        "transformExpression": "BLANKVALUE($Record.Type, \"New Subscription\") & \"|\" & BLANKVALUE($Record.StageName, \"__EMPTY__\")",
        "valueMap": {"New Subscription|Prospecting":"324091d6-b141-45bc-a12f-6fa9b63db9e3","New Subscription|Discovery & Qualification":"9d30edc4-b002-494b-a713-ae223ed02914","New Subscription|Technical Validation":"7ef88e6a-21c5-4d5f-bf65-8b595c838977","New Subscription|Business Validation":"b8357426-049f-4d67-82c2-b74291802373","New Subscription|Negotiation":"2ba8c8c4-d11f-45a0-9d4e-a1550a2de139","New Subscription|Deal Closed":"0ac9bc31-8baa-419a-9476-4225ddc300e9","New Subscription|Launched":"bbf84e68-7873-48ef-923a-7ef3beef864c","New Subscription|Closed Lost":"4866fa47-5d60-4f53-a03a-a88cd0018573","Expansion|Prospecting":"0902841b-fdce-49da-a1cb-09d8b3523efe","Expansion|Discovery & Qualification":"a6a22c37-d94c-4081-9b65-89fb4dc66a94","Expansion|Technical Validation":"c8858450-79ef-47e5-bbc5-475086405128","Expansion|Business Validation":"5ff701b9-4e7b-41e4-b93b-e4a0d25bac93","Expansion|Negotiation":"a08d2041-c0a2-463e-b829-92d7832e9142","Expansion|Deal Closed":"89217599-a225-448a-b4fb-904e3beaa795","Expansion|Launched":"b05bc4c4-92c1-416e-b605-61fd2856a3d3","Expansion|Closed Lost":"5f6251a1-38b9-4a1a-93ed-5fc038a47776","Renewal|Prospecting":"2e24037d-ebfb-4e30-8c83-e91edde6e4d5","Renewal|Discovery & Qualification":"dca945cf-0113-429b-96eb-8d349a501b8c","Renewal|Technical Validation":"34e58f36-6869-4a88-985c-70c9c2d10abc","Renewal|Business Validation":"0031edff-5754-4dd4-a2ea-346657a8b22d","Renewal|Negotiation":"2b6757ad-aa8b-4b62-b333-c36860d292c3","Renewal|Deal Closed":"c84857bc-375d-461f-bac8-91fa97173670","Renewal|Launched":"434eaa6b-97d3-4f87-b9df-aba91d641e75","Renewal|Closed Lost":"d2ed7950-f3f4-42d2-b6c7-22bcb842d6f3"}
      },
      {
        "sourceField": "Discovery_Completed__c",
        "targetField": "discovery_completed__c"
      },
      {
        "sourceField": "Opportunity_Number__c",
        "targetField": "opportunity_number__c"
      },
      {
        "sourceField": "Product_Family__c",
        "targetField": "product_family__c",
        "transformExpression": "BLANKVALUE($Record.Product_Family__c, \"__EMPTY__\")",
        "valueMap": {"__EMPTY__":"","TiDB Cloud":"TCSA","TiDB Enterprise Subscription":"MA","PingCAP Professional Services":"CSA","PingCAP Services":"PingCAP Services","PingCAP Training & Exam Services":"PingCAP Training & Exam Services","PingCAP Consulting Services":"PingCAP Consulting Services"}
      },
      {
        "sourceField": "Rate__c",
        "targetField": "rate__c"
      },
      {
        "sourceField": "ROI_Analysis_Completed__c",
        "targetField": "roi_analysis_completed__c"
      },
      {
        "sourceField": "HubSpot_Owner_Id__c",
        "targetField": "hubspot_owner_id"
      },
      {
        "sourceField": "Amount",
        "targetField": "amount"
      },
      {
        "sourceField": "ARR_Amount_USD__c",
        "targetField": "net_new_arr_amount"
      }
    ]
  }
]
