Share via


Codeunit "Report Distribution Management"

ID 452
Namespace: Microsoft.Foundation.Reporting

Properties

Name Value
EventSubscriberInstance Manual

Methods

DownloadPdfOnClient

procedure DownloadPdfOnClient(ServerPdfFilePath: Text): Text

Parameters

Name Type Description
ServerPdfFilePath Text

Returns

Type Description
Text

InitializeFrom

procedure InitializeFrom(NewHideDialog: Boolean)

Parameters

Name Type Description
NewHideDialog Boolean

GetFullDocumentTypeText

procedure GetFullDocumentTypeText(DocumentVariant: Variant): Text[50]

Parameters

Name Type Description
DocumentVariant Variant

Returns

Type Description
Text[50]

GetDocumentLanguageCode

procedure GetDocumentLanguageCode(DocumentVariant: Variant): Code[10]

Parameters

Name Type Description
DocumentVariant Variant

Returns

Type Description
Code[10]

GetReportCaption

procedure GetReportCaption(ReportID: Integer, LanguageCode: Code[10]): Text[250]

Parameters

Name Type Description
ReportID Integer
LanguageCode Code[10]

Returns

Type Description
Text[250]

SaveFileOnClient

procedure SaveFileOnClient(var TempBlob: Codeunit "Temp Blob", ClientFileName: Text)

Parameters

Name Type Description
TempBlob Codeunit System.Utilities."Temp Blob"
ClientFileName Text

SendXmlEmailAttachment

procedure SendXmlEmailAttachment(DocumentVariant: Variant, DocumentFormat: Code[20], var EmailBodyTempBlob: Codeunit "Temp Blob", SendToEmailAddress: Text[250], ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
DocumentVariant Variant
DocumentFormat Code[20]
EmailBodyTempBlob Codeunit System.Utilities."Temp Blob"
SendToEmailAddress Text[250]
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

SendXmlEmailAttachmentVendor

procedure SendXmlEmailAttachmentVendor(DocumentVariant: Variant, DocumentFormat: Code[20], var EmailBodyTempBlob: Codeunit "Temp Blob", SendToEmailAddress: Text[250])

Parameters

Name Type Description
DocumentVariant Variant
DocumentFormat Code[20]
EmailBodyTempBlob Codeunit System.Utilities."Temp Blob"
SendToEmailAddress Text[250]

RunDefaultCheckServiceElectronicDocument

Obsolete

This element will become obsolete from version 25.0. Replaced by same procedure in codeunit "Serv. Report Distribution Mgt."

[Obsolete(Replaced by same procedure in codeunit "Serv. Report Distribution Mgt.",25.0)]
procedure RunDefaultCheckServiceElectronicDocument(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

GetElectronicDocumentFormat

procedure GetElectronicDocumentFormat(var ElectronicDocumentFormat: Record "Electronic Document Format", DocumentVariant: Variant)

Parameters

Name Type Description
ElectronicDocumentFormat Table Microsoft.Foundation.Reporting."Electronic Document Format"
DocumentVariant Variant

Events

OnBeforeRunDefaultCheckSalesElectronicDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeRunDefaultCheckSalesElectronicDocument(var SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnBeforeGetBillToCustomer

[IntegrationEvent(False,False)]
local procedure OnBeforeGetBillToCustomer(var Customer: Record Customer, DocumentVariant: Variant, var IsHandled: Boolean)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
DocumentVariant Variant
IsHandled Boolean

OnBeforeGetReportCaption

[IntegrationEvent(False,False)]
local procedure OnBeforeGetReportCaption(ReportID: Integer, LanguageCode: Code[10], var ReportCaption: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
ReportID Integer
LanguageCode Code[10]
ReportCaption Text[250]
IsHandled Boolean

OnBeforeSendXmlEmailAttachment

[IntegrationEvent(False,False)]
local procedure OnBeforeSendXmlEmailAttachment(var ElectronicDocumentFormat: Record "Electronic Document Format", var Customer: Record Customer, var DocumentSendingProfile: Record "Document Sending Profile")

Parameters

Name Type Description
ElectronicDocumentFormat Table Microsoft.Foundation.Reporting."Electronic Document Format"
Customer Table Microsoft.Sales.Customer.Customer
DocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"

OnBeforeVANDocumentReport

[IntegrationEvent(False,False)]
local procedure OnBeforeVANDocumentReport(HeaderDoc: Variant, var TempDocumentSendingProfile: Record "Document Sending Profile" temporary, var ElectronicDocumentFormat: Record "Electronic Document Format")

Parameters

Name Type Description
HeaderDoc Variant
TempDocumentSendingProfile Table Microsoft.Foundation.Reporting."Document Sending Profile"
ElectronicDocumentFormat Table Microsoft.Foundation.Reporting."Electronic Document Format"

OnAfterGetBillToCustomer

[IntegrationEvent(False,False)]
local procedure OnAfterGetBillToCustomer(var Customer: Record Customer, DocumentVariant: Variant, DocumentRecordRef: RecordRef)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
DocumentVariant Variant
DocumentRecordRef RecordRef

OnAfterGetFullDocumentTypeText

[IntegrationEvent(False,False)]
local procedure OnAfterGetFullDocumentTypeText(DocumentVariant: Variant, var DocumentTypeText: Text[50], var DocumentRecordRef: RecordRef)

Parameters

Name Type Description
DocumentVariant Variant
DocumentTypeText Text[50]
DocumentRecordRef RecordRef

OnGetDocumentLanguageCodeCaseElse

[IntegrationEvent(False,False)]
local procedure OnGetDocumentLanguageCodeCaseElse(DocumentRecordRef: RecordRef, var LanguageCode: Code[10])

Parameters

Name Type Description
DocumentRecordRef RecordRef
LanguageCode Code[10]

OnVANDocumentReportOnBeforeLoopIteration

[IntegrationEvent(False,False)]
local procedure OnVANDocumentReportOnBeforeLoopIteration(var RecordRef: RecordRef, var HeaderDoc: Variant)

Parameters

Name Type Description
RecordRef RecordRef
HeaderDoc Variant

OnVANDocumentReportOnBeforeRunDeliveryCodeunit

[IntegrationEvent(False,False)]
local procedure OnVANDocumentReportOnBeforeRunDeliveryCodeunit(var RecordExportBuffer: Record "Record Export Buffer")

Parameters

Name Type Description
RecordExportBuffer Table System.IO."Record Export Buffer"

OnGetFullDocumentTypeTextElseCase

[IntegrationEvent(False,False)]
local procedure OnGetFullDocumentTypeTextElseCase(DocumentRecordRef: RecordRef, var DocumentTypeText: Text[50])

Parameters

Name Type Description
DocumentRecordRef RecordRef
DocumentTypeText Text[50]

OnGetBillToCustomerOnUnhandledTableNo

[IntegrationEvent(False,False)]
local procedure OnGetBillToCustomerOnUnhandledTableNo(DocumentRecordRef: RecordRef, var Customer: Record Customer)

Parameters

Name Type Description
DocumentRecordRef RecordRef
Customer Table Microsoft.Sales.Customer.Customer

See also