---
title: "getSqlResultList"
canonical: "https://support.appfire.com/space/SCLI/73367660/getSqlResultList"
format: markdown
---
See also: [Actions](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368507)

> 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/SCLI/pages/73368639), ([database](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370548) or [url](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371525)) |
> | **Optional Parameters** | [limit](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371427), [columns](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371162), [select](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368976), [options](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371383), [outputFormat](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371413), [outputType](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368777), [file](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370741), [append](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370891), [encoding](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368755), [field](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371343), [channel](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73367615) |
> | **Type** | [Get](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73370540/Action+Types#ActionTypes-Get) |
> | **Category** | [Info](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73371318/Action+Categories#ActionCategories-Info) |
> | **Output Formats** | 1 - CSV table of all columns |
> | **Replacement Variables** |  |
> | **Hosting** |  |
> | **Since Version** | 10.4 |
> | **Examples** |  |

## Related How To's

> Macro (cql-query)