# Search Completed Workflows

> Perform Search Completed Workflows through MyForms.

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

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

- Handler: `myforms_search_completed_workflows`

## 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": {
    "max_results": 25,
    "account_profile": "secondary",
    "timeout_seconds": 180,
    "resolve_brightree_wip": false
  },
  "handler": "myforms_search_completed_workflows"
}

```

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

## Inputs

- `workflow_template_id` — Workflow Template Id (number, required)
  Required numeric value.
- `workflow_template_name` — Workflow Template Name (text, required)
  Required text value.
- `brightree_wips` — Brightree Wips (json, required)
  Required JSON value.
- `max_results` — Max Results (number)
  Optional numeric value.
  Default: `25`
- `resolve_brightree_wip` — Resolve Brightree Wip (boolean)
  Optional true-or-false value.
  Default: `false`
- `account_profile` — Account Profile (select)
  Optional selected identifier or value.
  Default: `"secondary"`
  Options: Secondary ("secondary")
- `timeout_seconds` — Timeout Seconds (number)
  Optional numeric value.
  Default: `180`

## Outputs

- `success` — Success
- `workflows` — Workflows
- `count` — Count
- `complete` — Complete
- `error` — Error
- `error_message` — Error Message

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "workflow_template_id",
    "workflow_template_name",
    "brightree_wips"
  ],
  "properties": {
    "max_results": {
      "type": "number",
      "default": 25,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "brightree_wips": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "account_profile": {
      "enum": [
        "secondary"
      ],
      "type": "string",
      "default": "secondary",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "timeout_seconds": {
      "type": "number",
      "default": 180,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "workflow_template_id": {
      "type": "number",
      "description": "Required numeric value.",
      "x-workflow-field-type": "number"
    },
    "resolve_brightree_wip": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "workflow_template_name": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "success": {},
    "complete": {},
    "workflows": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
