> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/syslog-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/syslog-extensibility/functions-syslog-kalipso-1/inventory3/501-3.md).

# 501 - (Inventory) Save Document

Syslog 3.0 - Extensibility - Functions Syslog - Kalipso - Inventory - 501 - (Inventory) Save Document

501 - (Inventory) Save Document

| **Event** | **Extension action set** | **Description**                                                                                                                    |
| --------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| Before    | EXT\_0501\_1\_Before     | Will be executed before save the document;                                                                                         |
| Replace   | EXT\_0501\_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     | EXT\_0501\_3\_After      | Will be executed after the document is saved;                                                                                      |

*Input Parameters (event before)*:

* inCabKey – Unique key of the document; (assisted inventory)&#x20;
* inInternalStamp - Internal key of the document (blind inventory);

*Output Parameters (event before)*:

* outCanSave – Return code:&#x20;
  * 1 – Save the document&#x20;
  * 0 – Cancel

*Input Parameters (event replace)*:

* inCabKey – Unique key of the document; (assisted inventory)&#x20;
* inInternalStamp - Internal key of the document (blind inventory);&#x20;
* inWarehouse – Warehouse&#x20;
* inZone – Zone
* inLocation - Location

*Output Parameters (event replace)*:

* outCanSave – Return code:&#x20;
  * 1 - Save the document&#x20;
  * 0 - Cancel out

*Input Parameters (event after)*:

* inCabKey – Unique key of the document; (assisted inventory)&#x20;
* inInternalStamp - Internal key of the document (blind inventory);
* inFilterCabDoc - Unique key of the document;&#x20;
* inErroIntegracao - Return code:&#x20;
  * 0 - no Error
  * 1 - Error saving&#x20;
* inStampDocGerado - Generated document;
