> For the complete documentation index, see [llms.txt](https://muradkarakas.gitbook.io/sodium_documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://muradkarakas.gitbook.io/sodium_documentation/language-reference/built-in-triggers/post_insert-trigger.md).

# "post\_insert" Trigger

#### Description

`post_insert` trigger is fired after a new row successfully inserted to the underlying database.

**Declaration**

```
bool block_name.post_insert();
```

#### **Example**

```
void product_categories.post_delete() {
        refresh_tree_node('cb.data', :Global.selectedNodeParentId);
}

void product_categories.post_insert() {
        refresh_tree_node('cb.data', :Global.selectedNodeId);
}

void product_categories.post_update() {
        refresh_tree_node('cb.data', :Global.selectedNodeParentId);
}
```

#### **See also**
