# ExportLib

| Functions                                                             |                                                                                                  |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| selectionGridToExcel(e) ⇒ `void`                                      |                                                                                                  |
| textToFile(filename, text) ⇒ `void`                                   | Saves a text or json file to disk.                                                               |
| apiUriToExcel(apiuri, filename) ⇒ `void`                              | Call the API with a URI and exports the return data to Excel.                                    |
| apiQlToExcel(apiQuery, filename) ⇒ `void`                             | Calls the API using apiQL and exports the return data to Excel.                                  |
| transactionToExcel(transaction, transactionDetail, filename) ⇒ `void` |                                                                                                  |
| arrayToExcel(dataRows, filename) ⇒ `void`                             |                                                                                                  |
| gridToExcel(appConfig) ⇒ `void`                                       | Exports a grids visible data to Excel. If paging is being used only the current page is written. |

## selectionGridToExcel(e) ⇒ `void`

**Params**

* e `Type.EventInfo`

## textToFile(filename, text) ⇒ `void`

Saves a text or json file to disk.

**Params**

* filename `any`
* text `any`

## apiUriToExcel(apiuri, filename) ⇒ `void`

Call the API with a URI and exports the return data to Excel.

**Params**

* apiuri `string`
* filename `string`

## apiQlToExcel(apiQuery, filename) ⇒ `void`

Calls the API using apiQL and exports the return data to Excel.

**Params**

* apiQuery `string`
* filename `string`

## transactionToExcel(transaction, transactionDetail, filename) ⇒ `void`

**Params**

* transaction `any`
* transactionDetail `any`
* filename `any`

## arrayToExcel(dataRows, filename) ⇒ `void`

**Params**

* dataRows `Array.<any>`
* filename `any`

## gridToExcel(appConfig) ⇒ `void`

Exports a grids visible data to Excel. If paging is being used only the current page is written.

**Params**

* appConfig `Type.AppConfig`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinisuite.gitbook.io/sdk/sdk-and-scripting/libraries/export.sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
