# Fetch Workflow Documents

> Perform Fetch Workflow Documents through MyForms.

Source: [https://genhealth.ai/docs/workflows/integrations/my-forms/myforms_fetch_workflow_documents](https://genhealth.ai/docs/workflows/integrations/my-forms/myforms_fetch_workflow_documents)

Integration: [MyForms](https://genhealth.ai/docs/workflows/integrations/my-forms.md)

- Handler: `myforms_fetch_workflow_documents`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "MyForms",
  "params": {
    "account_profile": "secondary",
    "timeout_seconds": 180,
    "include_completed": false,
    "include_document_status": false
  },
  "handler": "myforms_fetch_workflow_documents"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `workflow_id` — Workflow Id (text, required)
  Required text value.
- `client_id` — Client Id (text, required)
  Required text value.
- `document_titles` — Document Titles (json, required)
  Required JSON value.
- `account_profile` — Account Profile (select)
  Optional selected identifier or value.
  Default: `"secondary"`
  Options: Secondary ("secondary")
- `additional_document_titles` — Additional Document Titles (json)
  Optional JSON value.
- `document_title_alternatives` — Document Title Alternatives (json)
  Optional JSON value.
- `include_document_status` — Include Document Status (boolean)
  Optional true-or-false value.
  Default: `false`
- `include_completed` — Include Completed (boolean)
  Optional true-or-false value.
  Default: `false`
- `timeout_seconds` — Timeout Seconds (number)
  Optional numeric value.
  Default: `180`

## Outputs

- `success` — Success
- `complete` — Complete
- `document_ids` — Document Ids
- `documents` — Documents
- `placeholder_documents` — Placeholder Documents
- `retrieval_failures` — Retrieval Failures
- `missing_titles` — Missing Titles
- `unavailable_titles` — Unavailable Titles
- `manifest` — Manifest
- `error` — Error
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "workflow_id",
    "client_id",
    "document_titles"
  ],
  "properties": {
    "client_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "workflow_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "account_profile": {
      "enum": [
        "secondary"
      ],
      "type": "string",
      "default": "secondary",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "document_titles": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "timeout_seconds": {
      "type": "number",
      "default": 180,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "include_completed": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "include_document_status": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "additional_document_titles": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "document_title_alternatives": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "complete": {},
    "manifest": {},
    "documents": {},
    "document_ids": {},
    "error_message": {},
    "missing_titles": {},
    "retrieval_failures": {},
    "unavailable_titles": {},
    "placeholder_documents": {}
  },
  "additionalProperties": true
}
```
