# Microsoft Dynamics Great Plains - Get next document number action
The Get next document number action retrieves the next document in Microsoft Dynamics GP.
# Input
| Input field | Description |
|---|---|
| Document type | Select the document type to retrieve, for example, General Ledger. |
| DB connection string | Enter the database connection string to use for the action. |
| Increase/decrease number | Select whether to increase or decrease the document number. This field defaults to Increment when left empty. |
# Output
| Output field | Description |
|---|---|
| Document number | The next document number matching the specified criteria. |
Last updated: 7/14/2025, 2:32:06 PM