---
title: "Codeunit 500 Enum Assignment Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/500-enum-assignment-management/
type: codeunit
id: 500
name: "Enum Assignment Management"
app: "Base Application"
namespace: Microsoft.Utilities
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/500-enum-assignment-management/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 500 Enum Assignment Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/500-enum-assignment-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Utilities |
| Versions | 17-28 |
| Source file | Utilities/EnumAssignmentManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetSalesApprovalDocumentType | (Enum Sales Document Type) | Enum Approval Document Type | public | 17-28 | - | - |
| GetSalesIncomingDocumentType | (Enum Sales Document Type) | Enum Incoming Document Type | public | 17-28 | - | - |
| GetPurchApprovalDocumentType | (Enum Purchase Document Type) | Enum Approval Document Type | public | 17-28 | - | - |
| GetPurchIncomingDocumentType | (Enum Purchase Document Type) | Enum Incoming Document Type | public | 17-28 | - | - |
| GetSalesLineTypeFromPurchLineType | (Enum Purchase Line Type) | Enum Sales Line Type | public | 17-28 | - | - |
| GetPurchLineTypeFromSalesLineType | (Enum Sales Line Type) | Enum Purchase Line Type | public | 17-28 | - | - |
| GetServiceIncomingDocumentType | (Enum Service Document Type) | Enum Incoming Document Type | public | 23-27 | Pending 25.0 | Replaced by sane procedure in codeunit ServDocExchangeMgt |
| GetSalesDocumentTypeFromApproval | (Enum Approval Document Type) | Enum Sales Document Type | public | 28 | - | - |
| GetPurchDocumentTypeFromApproval | (Enum Approval Document Type) | Enum Purchase Document Type | public | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnGetSalesApprovalDocumentType | (Enum Sales Document Type, var Enum Approval Document Type, var Boolean) | 17-28 | - | - |
| Integration event | OnGetSalesIncomingDocumentType | (Enum Sales Document Type, var Enum Incoming Document Type, var Boolean) | 17-28 | - | - |
| Integration event | OnGetPurchApprovalDocumentType | (Enum Purchase Document Type, var Enum Approval Document Type, var Boolean) | 17-28 | - | - |
| Integration event | OnGetPurchIncomingDocumentType | (Enum Purchase Document Type, var Enum Incoming Document Type, var Boolean) | 17-28 | - | - |
| Integration event | OnGetSalesLineTypeFromPurchLineType | (Enum Purchase Line Type, var Enum Sales Line Type, var Boolean) | 17-28 | - | - |
| Integration event | OnGetPurchLineTypeFromSalesLineType | (Enum Sales Line Type, var Enum Purchase Line Type, var Boolean) | 17-28 | - | - |
| Integration event | OnGetSalesDocumentTypeFromApproval | (Enum Approval Document Type, var Enum Sales Document Type, var Boolean) | 28 | - | - |
| Integration event | OnGetPurchDocumentTypeFromApproval | (Enum Approval Document Type, var Enum Purchase Document Type, var Boolean) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
