> For the complete documentation index, see [llms.txt](https://gebra-it.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gebra-it.gitbook.io/wiki/client-api-reference/functions/savecurrentrecord.md).

# saveCurrentRecord

Saves the changes to the current record in the database.

## Example Usages

Simple (pay attention to the **await** keyword)

```javascript
await app.saveCurrentRecord();
```

### Return Values

In summary, the **saveCurrentRecord** function checks whether a save operation is already in progress. If so, it exits early. Then, it **internally** triggers an event named "RecordSave" using the **triggerEvent** function. If the event resolution is falsy, it exits early.
