---
title: "Codeunit 2801 Native - EDM Types"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2801-native-edm-types/
type: codeunit
id: 2801
name: "Native - EDM Types"
app: "Base Application"
versions: "17-22"
build: 22.5.59966.64723
obsolete: "Pending 17.0"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 2801 Native - EDM Types

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2801-native-edm-types/

| | |
| --- | --- |
| App | Base Application |
| Versions | 17-22 |
| Obsolete | Pending 17.0, seen from 17. These objects will be removed |
| Source file | NativeEDMTypes.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| UpdateEDMTypes | () | - | public | 17-22 | - | - |
| GetSalesLineEDM | (Option) | Text | public | 17-22 | - | - |
| ParseSalesLinesJSON | (Option, Text, var Record Sales Invoice Line Aggregate, Guid) | - | public | 17-22 | - | - |
| WriteSalesLinesJSON | (var Record Sales Invoice Line Aggregate) | Text | public | 17-22 | - | - |
| ParseSalesLineJSON | (Option, DotNet JObject, var Record Sales Invoice Line Aggregate) | - | public | 17-22 | - | - |
| SalesLineToJSON | (var Record Sales Invoice Line Aggregate) | Text | public | 17-22 | - | - |
| GetSalesCouponEDM | () | Text | public | 17-22 | - | - |
| ParseCouponsJSON | (Text[250], Option, Code[20], Text) | - | public | 17-22 | - | - |
| ParseCouponJSON | (DotNet JObject, var Record O365 Coupon Claim Doc. Link) | - | public | 17-22 | - | - |
| WriteCouponsJSON | (Option, Code[20]) | Text | public | 17-22 | - | - |
| WritePostedCouponsJSON | (Code[20]) | Text | public | 17-22 | - | - |
| CouponToJSON | (var RecordRef, var DotNet JObject) | - | public | 17-22 | - | - |
| GetAttachmentEDM | () | Text | public | 17-22 | - | - |
| ParseAttachmentsJSON | (Text, var Record Attachment Entity Buffer, Guid) | - | public | 17-22 | - | - |
| WriteAttachmentsJSON | (var Record Attachment Entity Buffer) | Text | public | 17-22 | - | - |
| ParseAttachmentJSON | (DotNet JObject, var Record Attachment Entity Buffer) | - | public | 17-22 | - | - |
| AttachmentToJSON | (var Record Attachment Entity Buffer, var DotNet JObject) | - | public | 17-22 | - | - |
| GetFieldSetBufferWithAllFieldsSet | (var Record Field Buffer) | - | public | 17-22 | - | - |
| GetTaxGroupFromTaxable | (Boolean, var Record Tax Group) | Boolean | public | 17-22 | - | - |

## 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.

Jonas Paprotka, 2026-09-20.
