---
title: "Codeunit 1512 Workflow Create Payment Line, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/points/
object: https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 1512 Workflow Create Payment Line, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/points/

3 procedures and triggers with a step in src/Layers/W1/BaseApp/System/Workflow/WorkflowCreatePaymentLine.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 14](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L14), trigger.

- [26](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L26) calls `CreatePmtLine`

## CreatePmtLine

[Line 32](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L32).

- [85](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L85) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Account No.`
- [87](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L87) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Bal. Account No.`
- [88](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L88) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Currency Code`
- [96](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L96) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [104](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L104) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `SetPostingDateAsDueDate`
- [104](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L104) calls [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `GetAppliesToDocDueDate`
- [105](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L105) calls `GetDocumentNo`
- [106](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L106) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert

## GetDocumentNo

[Line 109](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L109).

- [118](https://jonas-paprotka.de/ref/codeunit/1512-workflow-create-payment-line/source/#L118) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `PeekNextNo`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
