# getFunctionViews {#getfunctionviews}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getFunctionViews()`

## Arguments {#arguments}

None

## Details {#details}

Return a list of function views.

It returns a table with the following columns:

-   name: the function name.

-   body: the function body. For function views created from a *.dom* module file, this column only displays the function name, not the function body.


When this function is executed by an administrator, it returns all the function views. When executed by a user with VIEW\_OWNER permission, it only returns the function views created by the user.

## Examples {#examples}

```
getFunctionViews()
```

|name|body|
|----|----|
|countTradeAll|countTradeAll|

