# Save Raw Model

This action will insert or update a record in a given collection.

![](https://2678899722-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-M_bW5ZwNLHN9-nWuYv7%2F-M_bXhdqKJEKycd4Jjlv%2Fimage.png?alt=media\&token=b57f6fe0-7526-49d2-9e79-e09306694fe0)

### Settings

The action uses the following settings:

| Setting    | Description                                                   | [Parsed](https://docs10.xenioo.com/actions-and-operations/dynamic-parsing) |
| ---------- | ------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Collection | The collection to be used for the action                      | :no\_entry:                                                                |
| JSON       | The full json source for the record to be updated or inserted | :white\_check\_mark:                                                       |

### Remarks

This action will store the whole JSON in the selected collection regardless of the structure, as long as it is valid.

### Trigger

This action has no triggers.

### Variables

This action produces the following variables after being triggered:

| Variable                   | Description                                                    |
| -------------------------- | -------------------------------------------------------------- |
| last\_database\_object\_id | The unique id of the record that has been updated or inserted. |

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| SMS              | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action requires an active [Database ](https://docs10.xenioo.com/basic-concepts/your-account/additional-packages)package.
