# 401 - Save Document

> Syslog 4.0 documentation · https://doc.sysdevmobile.com/syslog/extensibility/others-documents/401-others-documents-save-document
>
> Função 401 de Outros Documentos: ações EXT_0401 executadas antes, em substituição ou depois de gravar o documento, com o parâmetro outCanSave.

401 - (Others Documents) Save Document

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

### Before

_Input Parameters_

* inFilterCabDoc – Unique key of the document;
* inInternalStamp

_Output Parameters_

* outCanSave - 1 – Save the document / 0 – Cancel<br>

### Replace

_Input Parameters_

* inFilterCabDoc – Unique key of the document;
* inInternalStamp

_Output Parameters_

* outCanSave – Return code:
  * 1 – Save the document
  * 0 – Cancel

### After

_Input Parameters_

* inFilterCabDoc – Unique key of the document;
* inInternalStamp
