# Custom Expression Functions

Canonical page: https://www.adaptabletools.com/docs/adaptable-ql-expression-functions-custom

- Custom Expression Functions are AdapTableQL [Expression Functions](https://www.adaptabletools.com/docs/adaptable-ql-expression/index.md) provided by developers at design-time
- They are registered with the AdapTableQL evaluation engine and available for use in AdapTable
- They can be Standard (single-row) or Aggregated (multiple-rows)
- They are also listed in the [Expression Editor](https://www.adaptabletools.com/docs/ui-expression-editor/index.md) with full help
- Custom Expression Functions may be provided only to specific Adaptable Modules

AdapTableQL ships with a huge range of [Expression Functions](https://www.adaptabletools.com/docs/adaptable-ql-expression-functions/index.md).

These allow run-time users to create powerful, and sometimes very complex queries.

However, where necessary, AdapTableQL can be extended through bespoke, custom, expression functions.

Custom Expression Functions **complement** the [AdapTableQL Expression Functions](https://www.adaptabletools.com/docs/adaptable-ql-expression-functions/index.md) available in AdapTable

Custom Expression functions return a single value, either a boolean (ie. true / false) or other value.

They can be divided into 2 types:

- [Standard Functions](https://www.adaptabletools.com/docs/adaptable-ql-expression-functions-custom-standard/index.md) - evaluate on a single AG Grid row
- [Aggregation Functions](https://www.adaptabletools.com/docs/adaptable-ql-expression-functions-custom-aggregation/index.md) - evaluate against a set of AG Grid rows

There are no Custom Observable Functions — Observable history readers are shipped Functions only.

| Module                                                                      | Standard | Aggregation |
| --------------------------------------------------------------------------- | :------: | :---------: |
| [Alerts](https://www.adaptabletools.com/docs/handbook-alerting/index.md)                      |    ✅    |     ✅      |
| [Calculated Column](https://www.adaptabletools.com/docs/handbook-calculated-column/index.md)  |    ✅    |     ✅      |
| [Column Filter](https://www.adaptabletools.com/docs/handbook-column-filter/index.md)          |    ✅    |             |
| [Export](https://www.adaptabletools.com/docs/handbook-exporting/index.md)                     |    ✅    |             |
| [Flashing Cell](https://www.adaptabletools.com/docs/handbook-flashing-cell/index.md)          |    ✅    |             |
| [Format Column](https://www.adaptabletools.com/docs/handbook-column-formatting/index.md)      |    ✅    |             |
| [Grid Filter](https://www.adaptabletools.com/docs/handbook-grid-filter/index.md)              |    ✅    |             |
| [Named Query](https://www.adaptabletools.com/docs/handbook-named-queries/index.md)            |    ✅    |             |
| [Plus Minus](https://www.adaptabletools.com/docs/handbook-editing-plus-minus/index.md)        |    ✅    |             |
| [Styled Column](https://www.adaptabletools.com/docs/handbook-styled-column-overview/index.md) |    ✅    |             |

## Setting Function Scope

By default a Custom Expression Function is available in **all Modules that host that kind of Expression**.

There are 2 ways in which this default scope can be restricted:

- using the `isAvailable` property in the Function object
- doing a global setting using the isExpressionFunctionAvailable property in Expression Options

See [Setting Custom Function Scope](https://www.adaptabletools.com/docs/adaptable-ql-expression-functions-custom-scope/index.md) for full details

### FAQ

**Can I provide an asynchronous Custom Expression Function?**
Not at the moment but this is something in the pipeline and likely to be available in future releases.
