ServiceNow · Arazzo Workflow

ServiceNow Incident With Attachment

Version 1.0.0

Create an incident, attach a file to it via multipart upload, then confirm the attachment.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AutomationCloud ServicesDigital WorkflowsEnterprise PlatformITSMProcessesT1Workflow-AutomationWorkflowsArazzoWorkflows

Provider

servicenow

Workflows

incident-with-attachment
Open an incident and attach a supporting file to it.
Creates an incident, uploads a file attachment to it, and confirms the attachment metadata.
3 steps inputs: callerId, shortDescription, uploadFile outputs: attachmentSysId, incidentSysId
1
createIncident
Create a new incident record to which the file will be attached.
2
uploadAttachment
Upload a file to the new incident using multipart form-data, targeting the incident table and the incident sys_id.
3
confirmAttachment
Retrieve the attachment metadata by sys_id to confirm it was stored and linked to the incident.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: ServiceNow Incident With Attachment
  summary: Create an incident, attach a file to it via multipart upload, then confirm the attachment.
  description: >-
    An intake-plus-evidence flow spanning the Table and Attachment APIs. The
    workflow creates an incident on the Table API, uploads a file to that
    incident record using a multipart form-data attachment, and then retrieves
    the attachment metadata by its sys_id to confirm it landed. The Table and
    Attachment APIs wrap single records under a result object. Every request is
    written inline, including the multipart upload that targets the new record
    by table name and sys_id.
  version: 1.0.0
sourceDescriptions:
- name: attachmentsApi
  url: ../openapi/servicenow-attachments-api-openapi.yml
  type: openapi
- name: tableRecordsApi
  url: ../openapi/servicenow-table-records-api-openapi.yml
  type: openapi
workflows:
- workflowId: incident-with-attachment
  summary: Open an incident and attach a supporting file to it.
  description: >-
    Creates an incident, uploads a file attachment to it, and confirms the
    attachment metadata.
  inputs:
    type: object
    required:
    - shortDescription
    - uploadFile
    properties:
      shortDescription:
        type: string
        description: The short description of the incident.
      callerId:
        type: string
        description: The sys_id of the caller reporting the incident.
      uploadFile:
        type: string
        description: The file content to attach to the incident.
  steps:
  - stepId: createIncident
    description: >-
      Create a new incident record to which the file will be attached.
    operationId: createRecord
    parameters:
    - name: tableName
      in: path
      value: incident
    requestBody:
      contentType: application/json
      payload:
        short_description: $inputs.shortDescription
        caller_id: $inputs.callerId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      incidentSysId: $response.body#/result/sys_id
      number: $response.body#/result/number
  - stepId: uploadAttachment
    description: >-
      Upload a file to the new incident using multipart form-data, targeting the
      incident table and the incident sys_id.
    operationId: uploadAttachmentMultipart
    requestBody:
      contentType: multipart/form-data
      payload:
        table_name: incident
        table_sys_id: $steps.createIncident.outputs.incidentSysId
        uploadFile: $inputs.uploadFile
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      attachmentSysId: $response.body#/result/sys_id
  - stepId: confirmAttachment
    description: >-
      Retrieve the attachment metadata by sys_id to confirm it was stored and
      linked to the incident.
    operationId: getAttachment
    parameters:
    - name: sys_id
      in: path
      value: $steps.uploadAttachment.outputs.attachmentSysId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      fileName: $response.body#/result/file_name
      tableSysId: $response.body#/result/table_sys_id
  outputs:
    incidentSysId: $steps.createIncident.outputs.incidentSysId
    attachmentSysId: $steps.uploadAttachment.outputs.attachmentSysId

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/servicenow-incident-with-attachment-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.