ActiveCampaign · Arazzo Workflow

ActiveCampaign Create Account and Add a Note

Version 1.0.0

Create an account record then attach an explanatory note to it.

1 workflow 1 source API 1 provider
View Spec View on GitHub Marketing AutomationEmail MarketingCRMSales AutomationCustomer ExperienceArazzoWorkflows

Provider

activecampaign

Workflows

create-account-add-note
Create an account and attach a note to it.
Creates an account and then attaches an explanatory note to the new account.
2 steps inputs: accountUrl, apiToken, name, note, ownerId outputs: accountId
1
createAccount
create-an-account-new
Create the account from the supplied name and URL.
2
addNote
create-an-account-note
Attach an explanatory note to the new account.

Source API Descriptions

Arazzo Workflow Specification

activecampaign-create-account-add-note-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: ActiveCampaign Create Account and Add a Note
  summary: Create an account record then attach an explanatory note to it.
  description: >-
    An account onboarding flow that records context. An account is created from
    a name and URL, then an explanatory note is attached to the new account.
    Every step spells out its request inline, including the Api-Token
    authentication header, so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: activecampaignApi
  url: ../openapi/activecampaign-v3.json
  type: openapi
workflows:
- workflowId: create-account-add-note
  summary: Create an account and attach a note to it.
  description: >-
    Creates an account and then attaches an explanatory note to the new
    account.
  inputs:
    type: object
    required:
    - apiToken
    - name
    - note
    properties:
      apiToken:
        type: string
        description: ActiveCampaign API token sent in the Api-Token header.
      name:
        type: string
        description: Name of the account to create.
      accountUrl:
        type: string
        description: Optional website URL of the account.
      ownerId:
        type: integer
        description: Optional identifier of the user who owns the account.
      note:
        type: string
        description: Text of the note to attach to the account.
  steps:
  - stepId: createAccount
    description: Create the account from the supplied name and URL.
    operationId: create-an-account-new
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    requestBody:
      contentType: application/json
      payload:
        account:
          name: $inputs.name
          accountUrl: $inputs.accountUrl
          owner: $inputs.ownerId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      accountId: $response.body#/account/id
  - stepId: addNote
    description: Attach an explanatory note to the new account.
    operationId: create-an-account-note
    parameters:
    - name: Api-Token
      in: header
      value: $inputs.apiToken
    - name: id
      in: path
      value: $steps.createAccount.outputs.accountId
    requestBody:
      contentType: application/json
      payload:
        note:
          note: $inputs.note
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      accountId: $response.body#/accounts/0/id
  outputs:
    accountId: $steps.createAccount.outputs.accountId