---
title: shareWithUI
framework: CloudKit JS
role: symbol
role_heading: Instance Method
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.database/sharewithui
---

# shareWithUI

Presents a UI to the user which lets them share a record with other users.

## Declaration

```data
Promise<CloudKit.SharingUIResult, CloudKit.CKError> shareWithUI(
	Object options
);
```

## Parameters

- `options`: A dictionary containing options for the share UI: | | | | | | | |

## Return Value

Return Value A Promise object that resolves to an object that represents the share record, or rejects to a CKError object.
