# Vena Solutions

> Load data into Vena with ETL templates and track the jobs, and read values, hierarchies and Vena Tables from your data models.

App · 18 actions. Web page: https://docs.lodol.com/docs/integrations/vena

## Actions

### Cancel ETL job

Stop an ETL job that is still running.

**Inputs**

- Job ID (`job_id`, text, required): The ETL job, by the ID a Start or Create job step returned.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "createdDate": 1,
    "id": "example",
    "modelId": "example",
    "modelName": "example",
    "name": "example",
    "status": "example",
    "updatedDate": 1,
    "userName": "example"
  }
}
```

### Create ETL job

Create a job from an ETL template, ready for data to be loaded into its steps before you submit it.

**Inputs**

- ETL template (`template_id`, text, required): The ETL template, which says how Vena loads the data.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "createdDate": 1,
    "id": "example",
    "modelId": "example",
    "modelName": "example",
    "name": "example",
    "status": "example",
    "updatedDate": 1,
    "userName": "example"
  }
}
```

### Create Vena Table export

Start a snapshot export of a Vena Table's rows. Check it with Get Vena Table export status, then read it with Get Vena Table export rows within 24 hours.

**Inputs**

- Data model (`model_id`, text, required): The data model.
- Vena Table (`table_id`, text, required): The Vena Table.
- Filter (`where`, text): A VenaQL filter for the rows to export, such as `Year = '2026'`. Leave empty for every row.
- Columns (`columns`, list): Only these columns. Leave empty for all.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "columnNames": [
      "example"
    ],
    "createdTime": "example",
    "errorReason": "example",
    "expiresTime": "example",
    "exportType": "example",
    "id": "example",
    "modelId": "example",
    "status": "example",
    "tableId": "example",
    "whereClause": "example"
  }
}
```

### Get ETL job

Get an ETL job's status, data model and who ran it.

**Inputs**

- Job ID (`job_id`, text, required): The ETL job, by the ID a Start or Create job step returned.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "createdDate": 1,
    "id": "example",
    "modelId": "example",
    "modelName": "example",
    "name": "example",
    "status": "example",
    "updatedDate": 1,
    "userName": "example"
  }
}
```

### Get ETL job status

Get just an ETL job's status, such as Running, Completed or Error.

**Inputs**

- Job ID (`job_id`, text, required): The ETL job, by the ID a Start or Create job step returned.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "status": "example"
  }
}
```

### Get ETL template

Get an ETL template's data model, steps and when it last ran.

**Inputs**

- ETL template (`template_id`, text, required): The ETL template, which says how Vena loads the data.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "id": "example",
    "lastRunTime": 1,
    "modelId": "example",
    "modelName": "example",
    "name": "example",
    "steps": [
      {
        "dataType": "example",
        "inputId": "example",
        "stepName": "example"
      }
    ]
  }
}
```

### Get hierarchy

Get every member of every dimension in a data model, with its parent and operator.

**Inputs**

- Data model (`model_id`, text, required): The data model.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "alias": "example",
        "dimension": "example",
        "name": "example",
        "operator": "example",
        "parent": "example"
      }
    ],
    "metadata": {
      "recordsReturned": 1
    }
  }
}
```

### Get intersection values

Read values from a data model, such as actuals for one account and period, as records keyed by dimension.

**Inputs**

- Data model (`model_id`, text, required): The data model.
- Members (`members`, object): Only values at these members, as dimension names and member names, such as `{"Period": "Jan", "Year": "2026"}`. Names are case-sensitive.
- Under dimension (`under_dimension`, text): With Under member: the dimension of a parent member, such as `Account`, to read every value below it.
- Under member (`under_member`, text): With Under dimension: the parent member, such as `Revenue`, whose bottom-level members to read.
- Results per page (`page_size`, number): How many values to return, up to 100,000. Leave empty for 5,000. From 1 to 100000.
- After key (`after_key`, text): The next page's key, from the previous page's After key. Leave empty for the first page.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "afterKey": "example",
    "headers": [
      "example"
    ],
    "nextPage": "example",
    "records": [
      {}
    ],
    "recordsReturned": 1,
    "totalRecords": 1
  }
}
```

### Get Vena Table

Get a Vena Table's columns and about how many rows it holds.

**Inputs**

- Data model (`model_id`, text, required): The data model.
- Vena Table (`table_id`, text, required): The Vena Table.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "columnNames": [
      "example"
    ],
    "estimatedRowCount": 1,
    "id": "example",
    "name": "example"
  }
}
```

### Get Vena Table export rows

Read a page of a completed Vena Table export, as records keyed by column.

**Inputs**

- Export ID (`export_id`, text, required): The export, by the ID Create Vena Table export returned.
- Start at row (`offset`, number): The row to start from, counting from 0. Leave empty to start at the first row. At least 0.
- Rows per page (`limit`, number): How many rows to return, up to 50,000. Leave empty for 50,000. From 1 to 100000.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "headers": [
      "example"
    ],
    "nextPage": "example",
    "records": [
      {}
    ],
    "recordsReturned": 1,
    "totalRecords": 1
  }
}
```

### Get Vena Table export status

Check whether a Vena Table export is ready: Submitted, Queued, Running, Completed, Error or Expired.

**Inputs**

- Export ID (`export_id`, text, required): The export, by the ID Create Vena Table export returned.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "status": "example"
  }
}
```

### List ETL templates

List the ETL templates you can load data with, with their data model and steps.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "templates": [
      {
        "id": "example",
        "lastRunTime": 1,
        "modelId": "example",
        "modelName": "example",
        "name": "example",
        "steps": [
          {
            "dataType": "example",
            "inputId": "example",
            "stepName": "example"
          }
        ]
      }
    ]
  }
}
```

### List Vena Tables

List a data model's Vena Tables and their columns.

**Inputs**

- Data model (`model_id`, text, required): The data model.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "columnNames": [
          "example"
        ],
        "estimatedRowCount": 1,
        "id": "example",
        "name": "example"
      }
    ],
    "metadata": {
      "recordsReturned": 1
    }
  }
}
```

### Load file and start job

Load a CSV file into Vena with an ETL template and start the job, in one step.

**Inputs**

- ETL template (`template_id`, text, required): The ETL template, which says how Vena loads the data.
- File (`file`, text, required): The data file to load, as the template expects it (normally CSV).
- File format (`file_format`, text): How the file's values are separated. Leave empty for comma-separated. One of: `CSV` (Comma-separated (CSV)), `PSV` (Pipe-separated (PSV)), `TDF` (Tab-separated (TDF)).

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "createdDate": 1,
    "id": "example",
    "modelId": "example",
    "modelName": "example",
    "name": "example",
    "status": "example",
    "updatedDate": 1,
    "userName": "example"
  }
}
```

### Load file into job step

Load a CSV file into one step of a job you created, without running it yet.

**Inputs**

- Job ID (`job_id`, text, required): The ETL job, by the ID a Start or Create job step returned.
- ETL template (`template_id`, text, required): The ETL template the job was made from, to choose its step.
- Template step (`input_id`, text, required): The template step to load the data into.
- File (`file`, text, required): The data file to load, as the template expects it (normally CSV).
- File format (`file_format`, text): How the file's values are separated. Leave empty for comma-separated. One of: `CSV` (Comma-separated (CSV)), `PSV` (Pipe-separated (PSV)), `TDF` (Tab-separated (TDF)).

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Load rows and start job

Load rows of data into Vena with an ETL template and start the job, in one step.

**Inputs**

- ETL template (`template_id`, text, required): The ETL template, which says how Vena loads the data.
- Rows (`rows`, list, required): The rows to load, up to 10,000: each a line of values separated by commas, in the order the template's columns expect, such as `4000, Jan, 1250.50`.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "createdDate": 1,
    "id": "example",
    "modelId": "example",
    "modelName": "example",
    "name": "example",
    "status": "example",
    "updatedDate": 1,
    "userName": "example"
  }
}
```

### Load rows into job step

Load rows of data into one step of a job you created, without running it yet.

**Inputs**

- Job ID (`job_id`, text, required): The ETL job, by the ID a Start or Create job step returned.
- ETL template (`template_id`, text, required): The ETL template the job was made from, to choose its step.
- Template step (`input_id`, text, required): The template step to load the data into.
- Rows (`rows`, list, required): The rows to load, up to 10,000: each a line of values separated by commas, in the order the template's columns expect, such as `4000, Jan, 1250.50`.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "done": true
  }
}
```

### Submit ETL job

Run a job you created once its steps have their data.

**Inputs**

- Job ID (`job_id`, text, required): The ETL job, by the ID a Start or Create job step returned.

**Outputs**

- `data` (object): The response from Vena Solutions.

**Example output**

```json
{
  "data": {
    "createdDate": 1,
    "id": "example",
    "modelId": "example",
    "modelName": "example",
    "name": "example",
    "status": "example",
    "updatedDate": 1,
    "userName": "example"
  }
}
```
