Salesforce Sales Cloud · Arazzo Workflow

Salesforce Sales Cloud Account 360 Enrichment

Version 1.0.0

Resolve an Account by name, then pull its related Contacts and open Opportunities.

1 workflow 1 source API 1 provider
View Spec View on GitHub CloudCRMCustomer ManagementEnterpriseSalesArazzoWorkflows

Provider

salesforce-sales-cloud

Workflows

account-360-enrichment
Resolve an Account, then fetch its Contacts and open Opportunities.
Queries for an Account by name, then runs two related SOQL queries keyed on the Account id to gather Contacts and open Opportunities.
3 steps inputs: accessToken, accountName, openStageFilter outputs: accountId, contacts, opportunities
1
resolveAccount
Query for the Account by name.
2
getContacts
Query the Account's related Contacts by AccountId.
3
getOpenOpportunities
Query the Account's open Opportunities by AccountId.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Salesforce Sales Cloud Account 360 Enrichment
  summary: Resolve an Account by name, then pull its related Contacts and open Opportunities.
  description: >-
    A read-fan-out pattern over the Query and SObject Rows resources that builds
    an account-360 view. The workflow queries for an Account by name, branches
    when none is found, then uses the resolved Account id to query its related
    Contacts and its open Opportunities. Every step inlines its request and the
    OAuth bearer Authorization header.
  version: 1.0.0
sourceDescriptions:
- name: queryApi
  url: ../openapi/salesforce-sales-cloud-query-api-openapi.yml
  type: openapi
workflows:
- workflowId: account-360-enrichment
  summary: Resolve an Account, then fetch its Contacts and open Opportunities.
  description: >-
    Queries for an Account by name, then runs two related SOQL queries keyed on
    the Account id to gather Contacts and open Opportunities.
  inputs:
    type: object
    required:
    - accessToken
    - accountName
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 access token used as the Bearer credential.
      accountName:
        type: string
        description: Account Name to resolve in the SOQL WHERE clause.
      openStageFilter:
        type: string
        description: Stage value treated as "closed" to exclude from open Opportunities.
        default: Closed Won
  steps:
  - stepId: resolveAccount
    description: Query for the Account by name.
    operationId: executeSOQLQuery
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: q
      in: query
      value: "SELECT Id, Name FROM Account WHERE Name = '$inputs.accountName' LIMIT 1"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      totalSize: $response.body#/totalSize
      accountId: $response.body#/records/0/Id
    onSuccess:
    - name: accountFound
      type: goto
      stepId: getContacts
      criteria:
      - context: $response.body
        condition: $.totalSize > 0
        type: jsonpath
    - name: accountMissing
      type: end
      criteria:
      - context: $response.body
        condition: $.totalSize == 0
        type: jsonpath
  - stepId: getContacts
    description: Query the Account's related Contacts by AccountId.
    operationId: executeSOQLQuery
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: q
      in: query
      value: "SELECT Id, FirstName, LastName, Email FROM Contact WHERE AccountId = '$steps.resolveAccount.outputs.accountId'"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      contactCount: $response.body#/totalSize
      contacts: $response.body#/records
  - stepId: getOpenOpportunities
    description: Query the Account's open Opportunities by AccountId.
    operationId: executeSOQLQuery
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: q
      in: query
      value: "SELECT Id, Name, StageName, Amount FROM Opportunity WHERE AccountId = '$steps.resolveAccount.outputs.accountId' AND StageName != '$inputs.openStageFilter'"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      opportunityCount: $response.body#/totalSize
      opportunities: $response.body#/records
  outputs:
    accountId: $steps.resolveAccount.outputs.accountId
    contacts: $steps.getContacts.outputs.contacts
    opportunities: $steps.getOpenOpportunities.outputs.opportunities

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/salesforce-sales-cloud-account-360-enrichment-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.