# Ensure Workflow Marketing Rep

> Perform Ensure Workflow Marketing Rep through MyForms.

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

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

- Handler: `myforms_ensure_marketing_rep_secondary`

## 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
  },
  "handler": "myforms_ensure_marketing_rep_secondary"
}

```

[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.
- `marketing_rep_name` — Marketing Rep Name (expression, required)
  Required literal value or workflow expression.
- `sales_order_key` — Sales Order Key (expression, required)
  Required literal value or workflow expression.
- `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
- `workflow_id` — Workflow Id
- `marketing_rep_id` — Marketing Rep Id
- `marketing_rep_name` — Marketing Rep Name
- `assigned` — Assigned
- `skipped` — Skipped
- `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",
    "marketing_rep_name",
    "sales_order_key"
  ],
  "properties": {
    "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"
    },
    "sales_order_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "timeout_seconds": {
      "type": "number",
      "default": 180,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "marketing_rep_name": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "skipped": {},
    "success": {},
    "assigned": {},
    "workflow_id": {},
    "error_message": {},
    "marketing_rep_id": {},
    "marketing_rep_name": {}
  },
  "additionalProperties": true
}
```
