---
description: >-
  Creates an url, that leads to a standalone app for pulic use. There is still a
  valid user logged in. The public user has to be configured in the settings as
  a "valid external user" for security reason
---

# createPublicAppUrl

## Parameters

1. options - Json object with the same properties as \[createPublicAppUrl]\(/globalDoc/function\_createPublicAppUrl) options, plus:
   * publicUser - the user email address of the Gebra Suite user, that will be used for the public app .

## Example Usages

```javascript
await app.createPublicAppUrl({
  appName: "survey",
  publicUser: "surveyuser@acme.com",
  id: 1,
});
```

The function returns the URL to the standalone app. The **await** keyword ensures that the URL is only accessed after it has been fully generated, which is common when dealing with asynchronous tasks such as network requests.

### Return Values

The function returns a "Promise" that resolves to the URL created by the "createPublicAppUrl" function, and the resolved value is also logged to the console before being returned. If there are errors during the processing, the Promise might be rejected and a potential way to handle such a situation is using a try-catch operation when calling the function.
