# Vizpad-related actionTypes

### **A partial list of actionTypes supported**

The actionType field can be used with any of the given values to get results for different types of tasks. Here is a partial collection of actionTypes supported (with samples).

<table data-header-hidden><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>actionType values</strong></td><td><strong>Description</strong></td><td><strong>Sample code</strong></td></tr><tr><td>getAllFiltersApplied</td><td>Provides the list of all filters</td><td><pre class="language-javascript"><code class="lang-javascript">telliusFrame.postMessage({
    actionType: "getAllFiltersApplied"
}, "*");
</code></pre></td></tr><tr><td>getVizpadFiltersApplied</td><td>Provides the list of all filters applied to a Vizpad</td><td><pre class="language-javascript"><code class="lang-javascript">telliusFrame.postMessage({
    actionType: "getVizpadFiltersApplied"
}, "*");
</code></pre></td></tr><tr><td>getVizFiltersApplied</td><td>Provides the list of all filters applied to a Viz</td><td><pre><code>telliusFrame.postMessage({
    actionType: "getVizFiltersApplied"
}, "*");
</code></pre></td></tr><tr><td>getBusinessViewColumns</td><td>Provides the list of columns in a Business View</td><td><pre class="language-javascript"><code class="lang-javascript">telliusFrame.postMessage({
    actionType: "getBusinessViewColumns"
}, "*");
</code></pre></td></tr><tr><td>getResolutionApplied</td><td>Provides the resolution applied to a Vizpad</td><td><pre class="language-javascript"><code class="lang-javascript">telliusFrame.postMessage({
    actionType: "getResolutionApplied"
}, "*");
</code></pre></td></tr></tbody></table>

### **Getting the list of columns in a Business View**

For example, if the embedding app sends a postMessage with the actionType set as getBusinessViewColumns, Tellius sends back the following information:

```javascript
{
    columns: ["list_of_columns"],
    columnNames: ["list_of_columnNames"],
    actionType: "BVCOLUMNS",
}
```

### **Applying resolution**

Resolutions can be applied to both the Viz and Vizpad.

#### **To a Viz**

```javascript
telliusFrame.postMessage({
    actionType: "resolution",
    vizId: "ID_of_Viz",
    resolution: "monthly",
}, "*");
```

#### **To a Vizpad**

```javascript
telliusFrame.postMessage({
    actionType: "resolution",
    resolution: "monthly",
}, "*");
```
