> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-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/mss-extensibility/mss-5.1/functions-mss-to-kalipso/deliveries/1620-deliveries-save-delivery.md).

# 1620 - Save Delivery

1620 - Save Delivery

{% hint style="info" %}
Action available for V1 and V2 of the deliveries module
{% endhint %}

| Event               | Extension action set  | Description                                                                                |
| ------------------- | --------------------- | ------------------------------------------------------------------------------------------ |
| [Before ](#before)  | EXT\_1620\_1\_Before  | Will be executed before MSS saves the delivery;                                            |
| [Replace](#replace) | EXT\_1620\_2\_Replace | Will be executed before MSS saves the delivery with the possibility to cancel the process; |
| [After](#after)     | EXT\_1620\_3\_After   | Will be executed after MSS saves the delivery;                                             |

### Before

*Input Parameters*

* inDeliveryDocumentExercise – Exercise of the document;
* inDeliveryDocumentType – Type of the document;
* inDeliveryDocumentSeries – Series of the document;
* inDeliveryDocumentNumber – Number of the document;

### Replace

*Input Parameters*

* inDeliveryDocumentExercise – Exercise of the document;
* inDeliveryDocumentType – Type of the document;
* inDeliveryDocumentSeries – Series of the document;
* inDeliveryDocumentNumber – Number of the document;

*Output Parameters*

* outCanSaveDelivery – Return code: 1 – Allow MSS to save the delivery / 0 – Cancel;

### After

*Input Parameters*

* inDeliveryDocumentExercise – Exercise of the document;
* inDeliveryDocumentType – Type of the document;
* inDeliveryDeliveryDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
