# Sync Document Marketing Rep

> Perform Sync Document Marketing Rep through Brightree.

Source: [https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_document_marketing_rep_to_patient](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_sync_document_marketing_rep_to_patient)

Integration: [Brightree](https://genhealth.ai/docs/workflows/integrations/brightree.md)

- Handler: `brightree_sync_document_marketing_rep_to_patient`

- Connection type: `brightree`

## Inputs

- `document_id` — Document Id (expression, required)
  Required literal value or workflow expression.
- `patient_key` — Patient Key (expression, required)
  Required literal value or workflow expression.

## Outputs

- `success` — Success
- `document_id` — Document Id
- `patient_key` — Patient Key
- `marketing_rep_key` — Marketing Rep Key
- `marketing_rep_name` — Marketing Rep Name
- `submitted_by_name` — Submitted By Name
- `synced` — Synced
- `message` — Message
- `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": [
    "document_id",
    "patient_key"
  ],
  "properties": {
    "document_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "patient_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "synced": {},
    "message": {},
    "success": {},
    "document_id": {},
    "patient_key": {},
    "error_message": {},
    "marketing_rep_key": {},
    "submitted_by_name": {},
    "marketing_rep_name": {}
  },
  "additionalProperties": true
}
```
