# WithTables

The WithTables script keyword is used as an element within an IncludeModel statement. WithTables specifies which tables from the data product to integrate into the data model of the application.

Information note

For details and full syntax specification, see [IncludeModel](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/IncludeModel.htm).

Syntax:

WithTables Table table\_name1 Fields fieldlist Connection dataset\_connection {, Table table\_nameN Fields fieldlist Connection dataset\_connection,... }

Arguments and keywords

| Argument or keyword | Description |
| --- | --- |
| [Table](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Table.htm) | Keyword specifying the use of a table. Loads one table per `Table` statement. |
| table\_name | Specifies the name of the table to use in the data model.<br><br>Follow the quoting conventions documented at [Using quotation marks in the script](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/use-quotes-in-script.htm). Examples:<br><br>`MyDataTable`<br>`[My Data Table]`<br>`"My Data Table"` |
| [Fields](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Field.htm) | Keyword instructing to use the specified fields (fieldlist) from the table to integrate into the data model. |
| fieldlist | List of fields from the table referenced in the preceding `Table` statement.<br><br>You can use `*` to use all fields from the table, or provide a comma-separated list of specific fields.<br><br>Examples:<br><br>`Amount, Quantity, Region`<br>`[Amount], [Quantity], [Region]` |
| [Connection](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/Connection.htm) | Keyword specifying to use the dataset specified in `dataset_connection`. |
| dataset\_connection | A connection that can load the dataset containing the referenced table.<br><br>Depending on the location of the connection, use one of the following formats:<br><br><ul> <li> <p><span>environment:space:connection</span> — Used for files located within environments (containers for data synchronized between <span>Qlik Cloud</span> and <span>Qlik Talend Cloud</span>). Environments are associated to spaces (particularly, <span>data spaces</span>).</p> <p>For more information about environments, see <a href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-administer-environments.htm">Synchronizing and managing environments</a>.</p> </li> <li> <p><span>space:connection</span> — Used for connections with a space as the top-level storage container or in the same environment as the loading application. This could be connections located in <span>shared</span>, <span>managed</span>, or data spaces.</p> <p>For example, for a dataset stored locally within <span>Qlik Cloud</span> (<span>DataFiles</span> connection), located in a space named <span>Sales Analysis</span>, you would use following: <span>Sales Analysis:DataFiles</span></p> </li> <li> <p><span>connection</span> — Connection name only. This refers to connections located in your <span>personal space</span>. In this case, the connection would simply be: <span>DataFiles</span></p> </li> </ul><br><br>Examples:<br><br>`[CustomerOrders:DataFiles]`<br>`[SalesData2026:SnowflakeSales]` |

## Learn more

* [IncludeModel](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptRegularStatements/IncludeModel.htm)
* [Semantic models in data products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/DataProducts/semantic-models-in-data-products.htm)
* [Consuming data products in applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/DataProducts/consuming-data-products-apps.htm)
* [Data catalog](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/LoadData/data-catalog.htm)