# Encompass

> Read loan pipelines, loan details, folders and the eFolder inventory from Encompass Developer Connect.

App · 9 actions. Web page: https://docs.lodol.com/docs/integrations/encompass

## Actions

### Get loan

Read one loan and its selected entities.

**Inputs**

- Entities (`entities`, text): Comma-separated list of loan entities to retrieve from the loan.
- Include empty (`include_empty`, true/false): Specify `true` to include fields and objects that are empty.
- Include removed (`include_removed`, true/false): Indicates to include records removed from entities.
- View (`view`, text): Specify `entity` for core loan data, `logs` for log records, and `full` for both.
- Loan id (`loan_id`, text, required): The unique identifier assigned to the loan.

**Outputs**

- `data` (object): The full loan record returned by Encompass, including the selected loan entities.

**Example output**

```json
{
  "data": {
    "applications": [],
    "baseLoanAmount": 1.0,
    "borrowerCount": "example",
    "channel": "example",
    "id": "example",
    "loanIdNumber": "example",
    "milestones": [],
    "mortgageType": "example",
    "property": {}
  }
}
```

### Get loan folder

Read one named loan folder.

**Inputs**

- Folder name (`folder_name`, text, required): Name of the loan folder to retrieve.

**Outputs**

- `data` (object): The response from Encompass.

**Example output**

```json
{
  "data": {
    "actionsAllowed": [],
    "displayName": "example",
    "folderName": "example",
    "folderType": "example",
    "includeDuplicateLoanCheck": false,
    "includeInIceBiDashboard": false,
    "isArchiveFolder": false
  }
}
```

### List canonical fields

Find field names for pipeline queries.

**Inputs**

- Canonical names (`canonical_names`, text): Comma separated list of canonical names. If canonicalNames are specified, then fieldIds query parameter cannot be used.
- Field ids (`field_ids`, text): Comma separated list of field IDs. If fieldIds are specified, then canonicalNames query parameter cannot be used.

**Outputs**

- `data` (list): The response from Encompass.

**Example output**

```json
{
  "data": []
}
```

### List condition documents

Read documents attached to a specific loan condition.

**Inputs**

- Loan id (`loan_id`, text, required): Unique identifier of the loan.
- Condition id (`condition_id`, text, required): Unique identifier of the condition in the loan.

**Outputs**

- `data` (list): The response from Encompass.

**Example output**

```json
{
  "data": []
}
```

### List condition tracking entries

Read tracking entries for a specific loan condition.

**Inputs**

- Loan id (`loan_id`, text, required): Unique identifier of the loan.
- Condition id (`condition_id`, text, required): Unique identifier of the condition in the loan.

**Outputs**

- `data` (list): The response from Encompass.

**Example output**

```json
{
  "data": []
}
```

### List loan attachments

Read attachment metadata in a loan’s eFolder.

**Inputs**

- Include removed (`include_removed`, true/false): When set to **true**, the response includes attachments marked as removed.
- Active only (`active_only`, text): Indicate true to only retrieve active attachments. Default is false.
- Start (`start`, text): Starting index or record number from which to retrieve the list. If no start parameter passed, the API returns the list starting with 0 (first record).
- Limit (`limit`, text): The maximum number of records to return in a page. If no limit parameter passed, the API returns all records based on the start parameter.
- View (`view`, text): Optional. View type parameter. Enumerations: **Summary**, **Detail**, **Full**. The default is **Full**.
- Loan id (`loan_id`, text, required): The unique identifier assigned to the loan.

**Outputs**

- `data` (list): The response from Encompass.

**Example output**

```json
{
  "data": []
}
```

### List loan documents

Read document metadata in a loan’s eFolder.

**Inputs**

- Require active attachments (`require_active_attachments`, true/false): When set to **true**, only documents with active attachments are returned.
- Include removed (`include_removed`, true/false): When set to **true**, the response includes documents marked as removed.
- View (`view`, text): Optional. View type parameter. Enumerations: `detail`, `full`, `summary`
- Start (`start`, number): Starting index for pagination. Default when not provided is 0.
- Limit (`limit`, number): Limiting index for pagination. Default when not provided returns all records. There is no maximum limit.
- Loan id (`loan_id`, text, required): The unique identifier assigned to the loan.

**Outputs**

- `data` (list): The response from Encompass.

**Example output**

```json
{
  "data": []
}
```

### List loan folders

Read the folders accessible to this connection.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Encompass.

**Example output**

```json
{
  "data": {
    "actionsAllowed": [],
    "displayName": "example",
    "folderName": "example",
    "folderType": "example",
    "includeDuplicateLoanCheck": false,
    "includeInIceBiDashboard": false,
    "isArchiveFolder": false
  }
}
```

### List loan pipeline

Read a page of loan IDs and selected canonical fields.

**Inputs**

- Start (`start`, number, required): Zero-based starting index. The default is zero.
- Limit (`limit`, number, required): The maximum number of items to return in a page. Refer to the _Usage Notes_ in this endpoint page.
- Include (`include`, text): Additional data to include. The only possible value at this time is **LockInfo**.
- Ignore invalid fields (`ignore_invalid_fields`, true/false): Indicates whether to ignore fields that are invalid in the request. Default is **true**. If specified as false, an error will be thrown if invalid fields are specified in the request payload.
- Fields (`fields`, list): List of fields to return.

**Outputs**

- `data` (list): The response from Encompass.

**Example output**

```json
{
  "data": []
}
```
