workflows

List the workflows defined in the source of a project, a branch or an environment to find a workflow to run, schedule or edit; returns every workflow as one page with the source files that could not be read as workflows. Requires project.runs.read.

Arguments

  • projectReferenceString!required

  • inputSourceSelectorInput

  • input.sourceTargetKindSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • input.runtimeTargetKindRuntimeTargetKind

    Used as the source to read when sourceTargetKind is omitted. One of main_branch, environment, preview_branch.

  • input.targetEnvironmentIdID

    Required with the kind environment.

  • input.targetBranchIdID

    Required with the kind preview_branch.

Responses

query Workflows($projectReference: String!) {  workflows(projectReference: $projectReference) {    data {      id      name      description      target      sourcePath      editMode      version      inputSchema      outputSchema      schedulable    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }    diagnostics {      kind      sourceKind      sourcePath      sourceId      code      message      details    }  }}
{  "data": {    "workflows": {      "data": [        {          "id": "string",          "name": "string",          "description": "string",          "target": "string",          "sourcePath": "string",          "editMode": "structured",          "version": "string",          "inputSchema": {},          "outputSchema": {},          "schedulable": false        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      },      "diagnostics": [        {          "kind": "string",          "sourceKind": "string",          "sourcePath": "string",          "sourceId": "string",          "code": "string",          "message": "string",          "details": {}        }      ]    }  }}

The WorkflowList! in data.workflows.