> 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-kalipso-to-mss/numerators/ext_numerators_getnextnumber.md).

# EXT\_Numerators\_GetNextNumber

Function to ask MSS to return the next number available for a document type.

*Input parameters*:

* inDocumentType – Type of document;

*Output parameters*:

* outResultCode – Return code: 0 – Done / < 0 User canceled selection or error occurred;
* outDocumentExercise – Exercise to assign the new document;
* outDocumentSeries – Series of the new document;
* outDocumentNumber – Next number available;
