# Search Workflows

> Perform Search Workflows through MyForms.

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

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

- Handler: `myforms_search_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": 100,
    "account_profile": "secondary",
    "timeout_seconds": 180,
    "workflow_status": "In Progress"
  },
  "handler": "myforms_search_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.
- `workflow_state_id` — Workflow State Id (number, required)
  Required numeric value.
- `workflow_state_name` — Workflow State Name (text, required)
  Required text value.
- `workflow_status` — Workflow Status (text)
  Optional text value.
  Default: `"In Progress"`
- `max_results` — Max Results (number)
  Optional numeric value.
  Default: `100`
- `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",
    "workflow_state_id",
    "workflow_state_name"
  ],
  "properties": {
    "max_results": {
      "type": "number",
      "default": 100,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "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_status": {
      "type": "string",
      "default": "In Progress",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "workflow_state_id": {
      "type": "number",
      "description": "Required numeric value.",
      "x-workflow-field-type": "number"
    },
    "workflow_state_name": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "workflow_template_id": {
      "type": "number",
      "description": "Required numeric value.",
      "x-workflow-field-type": "number"
    },
    "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
}
```
