---
url: /flow/guide/scripting-reference/classes/data-set/dataset.post.md
---

# Dataset.Post

## Declaration

`procedure Post;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  DATASET.Insert; //create new record
DATASET['Field1'].Value := 10;
DATASET.Post; //save the record
end;
```

## Description

Saves a newly inserted or edited record. You do not need to call Post unless you have created or edited the record yourself using [Dataset.Insert](/flow/guide/scripting-reference/classes/data-set/dataset.insert) or [Dataset.Edit](/flow/guide/scripting-reference/classes/data-set/dataset.edit).

If you do not want to save the record you can call [Dataset.CancelPost](/flow/guide/scripting-reference/classes/data-set/dataset.cancelpost);
