# \[Rewst Master v2] PSA-Kaseya: Get Business Type

This workflow pulls business type classifications from Kaseya BMS lookup tables, giving automations the ability to make decisions based on client industry. MSPs can use it to apply client-specific SLAs, tailor onboarding, enforce industry-based policies, or customize billing. It runs a single API call to fetch standardized business type data, making it easy for other workflows to use. This helps ensure consistent client categorization across automations, especially when serving a diverse client base.

This workflow contains 1 tasks.

### Inputs

* **choose\_variable** - string

### Outputs

* **options**: Array of business types.

### Key tasks

* **kaseya\_bms\_get\_tenant\_lookup\_table\_content**: Data retrieval

### Jinja examples

```jinja
{{
    [
        {
        "id": business_type.id,
        "name": business_type.name,
        "default": true if business_type.id|string in ORG.VARIABLES[CTX.choose_variable]|d else false
        }
        for business_type in TASKS.kaseya_bms_get_tenant_lookup_table_content.result.result
        if business_type.isActive == true
    ] | sort(attribute="name") | unique(attribute="id")
}}
```

This is used to define business\_type data alias.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rewst.help/documentation/automations/subworkflows/rewst-master-v2-psa-kaseya-get-business-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
