# CreateDocEx method

Creates an app and opens an engine session.

Information note

This operation is possible only in Qlik Sense Desktop.

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qDocName | Name of the app. | Yes | String |
| qUserName | Name of the user. | No | String |
| qPassword | Password of the user. | No | String |
| qSerial | Current Qlik Sense serial number. | No | String |
| qLocalizedScriptMainSection | Name of the first section in the script editor.<br>The default value is *Main*. | No | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qDocId | &lt;path and name of the app&gt; | String |
| qReturn | { "qType": "Doc", "qHandle": &lt;handle of the app&gt; } | [ObjectInterface](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-objectinterface.htm) |

## Access Control

`create`

## See also

[Create and open an app](https://help.qlik.com/en-US/sense-developer/November2024/csh/engineapi/create-and-open-app)