---
title: "Codeunit 5450 Sales Invoice PDF Doc.Handler"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5450-sales-invoice-pdf-doc-handler/
type: codeunit
id: 5450
name: "Sales Invoice PDF Doc.Handler"
app: "Base Application"
namespace: Microsoft.EServices.EDocument
versions: "17-20, 28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5450-sales-invoice-pdf-doc-handler/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 5450 Sales Invoice PDF Doc.Handler

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5450-sales-invoice-pdf-doc-handler/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.EServices.EDocument |
| Versions | 17-20, 28 |
| Name by version | Graph Subscription Management from 17, Sales Invoice PDF Doc.Handler from 28 |
| Source file | Sales/eServices/EDocument/SalesInvoicePDFDocHandler.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| AddOrUpdateGraphSubscription | (var Boolean, Boolean, var Record Webhook Subscription, Text[250]) | - | public | 17-20 | - | - |
| CleanExistingWebhookSubscription | (Text[250], Text[30]) | - | public | 17-20 | - | - |
| GetDestinationRecordRef | (var RecordRef, Record Webhook Notification, Integer) | Boolean | public | 17-20 | Pending 18.0 | This function will be removed, Graph Integration Record is not supported any more. |
| GetGraphSubscriptionType | () | Text[250] | public | 17-20 | - | - |
| GetGraphSubscriptionCreatedChangeType | () | Text[50] | public | 17-20 | - | - |
| GetMaximumExpirationDateTimeOffset | () | Integer | public | 17-20 | - | - |
| GetSourceRecordRef | (var RecordRef, Record Webhook Notification, Integer) | Boolean | public | 17-20 | - | - |
| TraceCategory | () | Text | public | 17-20 | - | - |
| UpdateGraphOnAfterDelete | (var RecordRef) | - | public | 17-20 | Pending 18.0 | This function will be removed, Graph Integration Record is not supported any more. |
| UpdateGraphOnAfterInsert | (var RecordRef) | - | public | 17-20 | - | - |
| UpdateGraphOnAfterModify | (var RecordRef) | - | public | 17-20 | - | - |
| GeneratePdfBlobWithDocumentType | (Guid, Enum Attachment Entity Buffer Document Type, var Record Attachment Entity Buffer) | Boolean | public | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeAddOrUpdateGraphSubscriptions | (var Boolean) | 17-20 | - | - |
| Integration event | OnBeforeRunGraphSyncBackgroundSession | (var Boolean) | 17-20 | - | - |
| Integration event | OnCanSyncOnInsert | (var Boolean) | 17-20 | - | - |
| Integration event | OnGetSourceRecordRef | (var RecordRef, Record Webhook Notification, Integer, var Boolean) | 17-20 | - | - |
| Integration event | OnScheduleSyncTask | (Integer, Integer, DateTime, Variant) | 17-20 | - | - |

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