> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Contact Deals

> Documentation for the Get Contact Deals action for Active Campaign

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/active_campaign.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=c21732e6d31462ae53f8b0d3216b0236" alt="images/active_campaign.svg" width="40" height="40" data-path="images/active_campaign.svg" />

# Parameters

<ResponseField name="Action" type="Parameters">
  <Expandable title="parameters" defaultOpen="true">
    <ResponseField name="Contact ID" type="string">
      `ID`
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```json Result Object Example theme={null}
  {
    "$result_object_key": [
      {
        "contact_id": "10",
        "currency": "USD",
        "field_values": {
          "Deal Note": "This is a note"
        },
        "group": "2",
        "group_title": "Pipeline 1",
        "id": "10",
        "owner": "10",
        "stage": "3",
        "stage_title": "Stage 1",
        "title": "Deal 1",
        "value": 100
      }
    ]
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Result Object Description theme={null}
  {
    "$result_object_key": [
      {
        "contact_id": "Contact ID",
        "currency": "Currency",
        "field_values": "Custom fields' values",
        "group": "Deal group ID (pipeline ID)",
        "group_title": "Deal group title (pipeline title)",
        "id": "ID",
        "owner": "Owner ID",
        "stage": "Deal group stage ID (pipeline stage ID)",
        "stage_title": "Deal stage title",
        "title": "Title",
        "value": "Deal value"
      }
    ]
  }
  ```
</ResponseExample>

### Result Object Field Details

You can use the result of the action's data as inputs to downstream workflow actions.

Each fetch action requires a result object key to be specified which will nest the action's result data inside the downstream data context in the Workflow.

Here we demonstrate how to refer to this data using the prefix `$result_object_key`.

<ResponseField name="[]Deal" type="Fetch Action Response Object">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="id" type="string" required>
      `ID` ID

      ```json CEL theme={null}
      $result_object_key[*].id
      ```

      ```json Example theme={null}
      "10"
      ```
    </ResponseField>

    <ResponseField name="contact_id" type="string" required>
      `ID` Contact ID

      ```json CEL theme={null}
      $result_object_key[*].contact_id
      ```

      ```json Example theme={null}
      "10"
      ```
    </ResponseField>

    <ResponseField name="title" type="string" required>
      Title

      ```json CEL theme={null}
      $result_object_key[*].title
      ```

      ```json Example theme={null}
      "Deal 1"
      ```
    </ResponseField>

    <ResponseField name="currency" type="string" required>
      Currency

      ```json CEL theme={null}
      $result_object_key[*].currency
      ```

      ```json Example theme={null}
      "USD"
      ```
    </ResponseField>

    <ResponseField name="group" type="string" required>
      Deal group ID (pipeline ID)

      ```json CEL theme={null}
      $result_object_key[*].group
      ```

      ```json Example theme={null}
      "2"
      ```
    </ResponseField>

    <ResponseField name="stage" type="string" required>
      Deal group stage ID (pipeline stage ID)

      ```json CEL theme={null}
      $result_object_key[*].stage
      ```

      ```json Example theme={null}
      "3"
      ```
    </ResponseField>

    <ResponseField name="owner" type="string" required>
      Owner ID

      ```json CEL theme={null}
      $result_object_key[*].owner
      ```

      ```json Example theme={null}
      "10"
      ```
    </ResponseField>

    <ResponseField name="field_values" type="object" required>
      `HI` `ID` `PII` Custom fields' values

      ```json CEL theme={null}
      $result_object_key[*].field_values
      ```

      ```json Example theme={null}
      {
      "Deal Note": "This is a note"
      }
      ```
    </ResponseField>

    <ResponseField name="value" type="float64 (double)" required>
      Deal value

      ```json CEL theme={null}
      $result_object_key[*].value
      ```

      ```json Example theme={null}
      100
      ```
    </ResponseField>

    <ResponseField name="stage_title" type="string">
      Deal stage title

      ```json CEL theme={null}
      $result_object_key[*].stage_title
      ```

      ```json Example theme={null}
      "Stage 1"
      ```
    </ResponseField>

    <ResponseField name="group_title" type="string">
      Deal group title (pipeline title)

      ```json CEL theme={null}
      $result_object_key[*].group_title
      ```

      ```json Example theme={null}
      "Pipeline 1"
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
