# 201 - Save Document

> Syslog 4.0 documentation · https://doc.sysdevmobile.com/syslog/extensibility/packing/201-packing-save-document
>
> Função 201 do packing: ações EXT_0201 executadas antes, em substituição ou depois de gravar o packing, com o parâmetro outCanSave.

201 - (Packing) Save Document

| **Event**                                       | **Extension action set** | **Description**                                                                                                           |
| ----------------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| [Before ](https://doc.sysdevmobile.com/syslog/extensibility/packing/201-packing-save-document.md#before)  | EXT\_0201\_1\_Before     | Will be executed before Syslog APP saves the packing;                                                                     |
| [Replace](https://doc.sysdevmobile.com/syslog/extensibility/packing/201-packing-save-document.md#replace) | EXT\_0201\_2\_Replace    | Will be executed before Syslog APP saves the packing with the possibility to say Syslog APP to cancel the saving process; |
| [After](https://doc.sysdevmobile.com/syslog/extensibility/packing/201-packing-save-document.md#after)     | EXT\_0201\_3\_After      | Will be executed after the packing is saved;                                                                              |

### Before

_Input Parameters_

* inFilterCabDoc – Unique key of the document;

_Output Parameters_

* outCanSave - 1 – Save the document / 0 – Cancel

### Replace

_Input Parameters_

* _inFilterCabDoc – Unique key of the document;_

_Output Parameters_

* _outCanSave – Return code: 1 – Save the document / 0 – Cancel_

### After

_Input Parameters_

* inFilterCabDoc – Unique key of the document;
