---
title: "getSqlResultList"
canonical: "https://support.appfire.com/space/BCCLI/65768076/getSqlResultList"
format: markdown
---
> Macro (aura-html)

See also: [Actions](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766635)

> Macro (details)
> 
> | **Description** | Get a list of results from a dynamic SQL query or other dynamic SQL request. Specify the SQL using the sql parameter or indirectly using '--sql @' to specify a file with SQL. Use a site configuration entry with database connection information either directly as a site for the action or indirectly as a reference on the database parameter like '--database @'. |
> | --- | --- |
> | **Required Parameters** | [sql](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766247), ([database](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766744) or [url](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766291)) |
> | **Optional Parameters** | [limit](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768162), [columns](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766357), [select](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768292), [options](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65767811), [outputFormat](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65765525), [outputType](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768516), [file](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768095), [append](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65765977), [encoding](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766303), [field](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65767481), [channel](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65767719) |
> | **Type** | [Get](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65768932/Action+Types#ActionTypes-Get) |
> | **Category** | [Info](https://appfire.atlassian.net/wiki/spaces/BCCLI/pages/65766329/Action+Categories#ActionCategories-Info) |
> | **Output Formats** | 1 - CSV table of all columns |
> | **Replacement Variables** |  |
> | **Since Version** | 10.4 |
> | **Examples** |  |

## Related How To's

> Macro (cql-query)