> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.zoho.books.ListChartOfAccounts

- Component: `appmixer.zoho.books.ListChartOfAccounts`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.zoho.books 1.3.0](https://connectors.appmixer.com/connector/appmixer.zoho.books/1.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.zoho.books/1.3.0/component/appmixer.zoho.books.ListChartOfAccounts>

List all chart of accounts along with pagination.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Organization ID (`organization_id`) | select | - |
| Show Balance (`showbalance`) | toggle | Boolean to get current balance of accounts. |
| Status (`filter_by`) | select | Filter accounts based on its account type and status. |
| Sort Column (`sort_column`) | select | Sort accounts. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/zoho/books/ListChartOfAccounts?outPort=out`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.zoho.books.ListChartOfAccounts",
  "author": "Jiří Hofman <jirka@client.io>",
  "description": "List all chart of accounts along with pagination.",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:zoho:books",
    "scope": [
      "ZohoBooks.accountants.READ"
    ]
  },
  "quota": {
    "manager": "appmixer:zoho:books",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "organization_id": {
            "type": "string"
          },
          "showbalance": {
            "type": "boolean"
          },
          "filter_by": {
            "type": "string"
          },
          "sort_column": {
            "type": "string"
          },
          "outputType": {
            "type": "string"
          }
        }
      },
      "inspector": {
        "inputs": {
          "organization_id": {
            "type": "select",
            "label": "Organization ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/zoho/books/ListOrganizations?outPort=out",
              "data": {
                "transform": "./transformers#organizationsToSelectArray"
              }
            },
            "attrs": {
              "label": {
                "data-tooltip": "Select an organization."
              }
            }
          },
          "showbalance": {
            "type": "toggle",
            "label": "Show Balance",
            "index": 2,
            "defaultValue": false,
            "tooltip": "Boolean to get current balance of accounts."
          },
          "filter_by": {
            "type": "select",
            "label": "Status",
            "index": 3,
            "tooltip": "Filter accounts based on its account type and status.",
            "options": [
              {
                "clearItem": true,
                "content": "-- Clear selection --"
              },
              {
                "label": "All",
                "value": "AccountType.All"
              },
              {
                "label": "Active",
                "value": "AccountType.Active"
              },
              {
                "label": "Inactive",
                "value": "AccountType.Inactive"
              },
              {
                "label": "Asset",
                "value": "AccountType.Asset"
              },
              {
                "label": "Liability",
                "value": "AccountType.Liability"
              },
              {
                "label": "Equity",
                "value": "AccountType.Equity"
              },
              {
                "label": "Income",
                "value": "AccountType.Income"
              },
              {
                "label": "Expense",
                "value": "AccountType.Expense"
              }
            ]
          },
          "sort_column": {
            "type": "select",
            "label": "Sort Column",
            "index": 4,
            "defaultValue": "account_name",
            "tooltip": "Sort accounts.",
            "options": [
              {
                "label": "Account Name",
                "value": "account_name"
              },
              {
                "label": "Account Type",
                "value": "account_type"
              }
            ]
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 5,
            "defaultValue": "items",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or one item at a time or stream the items to a file. For large datasets, streaming the rows to a file is the most efficient method.",
            "options": [
              {
                "label": "All at once",
                "value": "items"
              },
              {
                "label": "One at a time",
                "value": "item"
              },
              {
                "label": "File",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/zoho/books/ListChartOfAccounts?outPort=out",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
