Salesforce Sales Cloud · Arazzo Workflow

Salesforce Sales Cloud Create Then Retrieve Contact

Version 1.0.0

Create a Contact, then read it back by id to confirm the persisted field values.

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

Provider

salesforce-sales-cloud

Workflows

create-then-retrieve-contact
Create a Contact and immediately fetch it by id.
Creates a Contact, then reads the same record back using the returned id, limiting the response to the supplied fields parameter.
2 steps inputs: accessToken, email, fields, firstName, lastName outputs: contactId, persistedEmail
1
createContact
Create the Contact record.
2
retrieveContact
Read the newly created Contact back by id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Salesforce Sales Cloud Create Then Retrieve Contact
  summary: Create a Contact, then read it back by id to confirm the persisted field values.
  description: >-
    A create-and-verify round trip over the SObject Rows resource. The workflow
    creates a Contact record, captures the returned id, and retrieves the record
    by that id requesting a specific field set so the caller can confirm exactly
    what Salesforce persisted. Every step inlines its request and the OAuth
    bearer Authorization header.
  version: 1.0.0
sourceDescriptions:
- name: sobjectRowsApi
  url: ../openapi/salesforce-sales-cloud-sobject-rows-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-then-retrieve-contact
  summary: Create a Contact and immediately fetch it by id.
  description: >-
    Creates a Contact, then reads the same record back using the returned id,
    limiting the response to the supplied fields parameter.
  inputs:
    type: object
    required:
    - accessToken
    - lastName
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 access token used as the Bearer credential.
      firstName:
        type: string
        description: First name of the Contact.
      lastName:
        type: string
        description: Last name of the Contact (required on Contact).
      email:
        type: string
        description: Email address of the Contact.
      fields:
        type: string
        description: Comma-separated list of fields to return on retrieval.
        default: Id,FirstName,LastName,Email
  steps:
  - stepId: createContact
    description: Create the Contact record.
    operationId: createSObjectRecord
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: sObjectName
      in: path
      value: Contact
    requestBody:
      contentType: application/json
      payload:
        FirstName: $inputs.firstName
        LastName: $inputs.lastName
        Email: $inputs.email
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      contactId: $response.body#/id
  - stepId: retrieveContact
    description: Read the newly created Contact back by id.
    operationId: getSObjectRecord
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: sObjectName
      in: path
      value: Contact
    - name: recordId
      in: path
      value: $steps.createContact.outputs.contactId
    - name: fields
      in: query
      value: $inputs.fields
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      contactId: $response.body#/Id
      email: $response.body#/Email
  outputs:
    contactId: $steps.createContact.outputs.contactId
    persistedEmail: $steps.retrieveContact.outputs.email

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-create-then-retrieve-contact-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.