# CreateApp method

Creates an app.

Information note

The operation is successful if **qSuccess** is set to true.

### Logs

When this method is called, audit activity logs are produced to track the user activity. In the case of errors, both audit activity logs and system services logs are produced. The log files are named as follows:

| Audit activity log | System service log |
| --- | --- |
| *&lt;MachineName&gt;\_AuditActivity\_Engine.txt* in Qlik Sense Enterprise<br>*&lt;MachineName&gt;\_AuditActivity\_Engine.log* in Qlik Sense Desktop | *&lt;MachineName&gt;\_ServiceEngine.txt* in Qlik Sense Enterprise<br>*&lt;MachineName&gt;\_ServiceEngine.log* in Qlik Sense Desktop |

### Where to find the log files

The location of the log files depends on whether you have installed Qlik Sense Enterprise or Qlik Sense Desktop.

| Qlik Sense Enterprise | Qlik Sense Desktop |
| --- | --- |
| %ProgramData%/Qlik/Sense/Log/Engine | %UserProfile%/Documents/Qlik/Sense/Log |

## Parameters

| Name | Description | Mandatory | Type |
| --- | --- | --- | --- |
| qAppName | Name of the app. | Yes | String |
| qLocalizedScriptMainSection | Name of the first section in the script editor.<br>The default value is *Main*. | No | String |
| qLocale | Set custom locale for the app instead of system default. | No | String |

## Returns

| Name | Description | Type |
| --- | --- | --- |
| qSuccess |  | Boolean |
| qAppId | One of:<br><br><ul><li>Path and name of the app (Qlik Sense Desktop)</li><li>GUID (Qlik Sense Enterprise)</li></ul> | String |

## Access Control

`create`

## See also

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