Cross-Provider Workflow

HubSpot Deal Won to Salesforce Marketing Journey

Version 1.0.0

Read a won HubSpot deal, then fire a Salesforce Marketing Cloud journey.

1 workflow 2 source APIs 2 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

hubspot salesforce

Workflows

hubspot-deal-to-marketing-journey
Read a won HubSpot deal, then fire a Marketing Cloud journey event.
Retrieves a closed-won deal from HubSpot, then fires a journey entry event in Salesforce Marketing Cloud to enroll the customer in a post-purchase automation.
2 steps inputs: contactKey, dealId, eventDefinitionKey outputs: amount, dealName, eventStatus
1
get-deal
$sourceDescriptions.hubspotDealsApi.getDeal
Retrieve the closed-won deal from HubSpot.
2
fire-journey
$sourceDescriptions.salesforceMarketingCloudApi.fireJourneyEvent
Fire a Salesforce Marketing Cloud journey entry event.

Source API Descriptions

Arazzo Workflow Specification

crm-hubspot-deal-won-to-salesforce-journey-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: HubSpot Deal Won to Salesforce Marketing Journey
  summary: Read a won HubSpot deal, then fire a Salesforce Marketing Cloud journey.
  description: >-
    A cross-provider workflow that reads a closed-won deal in HubSpot and
    triggers a post-purchase journey in Salesforce Marketing Cloud by firing a
    journey entry event for the customer. Demonstrates connecting a sales
    milestone in one CRM to an automated marketing journey in another platform.
  version: 1.0.0
sourceDescriptions:
  - name: hubspotDealsApi
    url: https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/openapi/hubspot-crm-deals-api-openapi.yml
    type: openapi
  - name: salesforceMarketingCloudApi
    url: https://raw.githubusercontent.com/api-evangelist/salesforce/refs/heads/main/openapi/salesforce-marketing-cloud-rest-openapi.yml
    type: openapi
workflows:
  - workflowId: hubspot-deal-to-marketing-journey
    summary: Read a won HubSpot deal, then fire a Marketing Cloud journey event.
    description: >-
      Retrieves a closed-won deal from HubSpot, then fires a journey entry event
      in Salesforce Marketing Cloud to enroll the customer in a post-purchase
      automation.
    inputs:
      type: object
      properties:
        dealId:
          type: string
        contactKey:
          type: string
        eventDefinitionKey:
          type: string
    steps:
      - stepId: get-deal
        description: Retrieve the closed-won deal from HubSpot.
        operationId: $sourceDescriptions.hubspotDealsApi.getDeal
        parameters:
          - name: dealId
            in: path
            value: $inputs.dealId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          dealName: $response.body#/properties/dealname
          amount: $response.body#/properties/amount
      - stepId: fire-journey
        description: Fire a Salesforce Marketing Cloud journey entry event.
        operationId: $sourceDescriptions.salesforceMarketingCloudApi.fireJourneyEvent
        requestBody:
          contentType: application/json
          payload:
            ContactKey: $inputs.contactKey
            EventDefinitionKey: $inputs.eventDefinitionKey
            Data:
              dealName: $steps.get-deal.outputs.dealName
              amount: $steps.get-deal.outputs.amount
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          eventStatus: $statusCode
    outputs:
      dealName: $steps.get-deal.outputs.dealName
      amount: $steps.get-deal.outputs.amount
      eventStatus: $steps.fire-journey.outputs.eventStatus