Share via


Table "Report Selections"

ID 77
Namespace: Microsoft.Foundation.Reporting

Properties

Name Value
Caption Report Selections
DataClassification CustomerContent

Fields

Name Type Description
Usage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
Sequence Code[10]

Specifies a number that indicates where this report is in the printing order.

"Report ID" Integer

Specifies the object ID of the report.

"Report Caption" Text[250]

Specifies the display name of the report.

"Custom Report Layout Code" Code[20]
"Use for Email Attachment" Boolean

Specifies that the related document will be attached to the email.

"Use for Email Body" Boolean

Specifies that summarized information, such as invoice number, due date, and payment service link, will be inserted in the body of the email that you send.

"Email Body Layout Code" Code[20]

Specifies the ID of the custom email body layout that is used.

"Email Body Layout Description" Text[250]

Specifies a description of the custom email body layout that is used.

"Email Body Layout Type" Enum System.EMail."Email Body Layout Type"
"Email Body Layout Name" Text[250]

Specifies the name of the email body layout that is used.

"Email Body Layout AppID" Guid
"Email Body Layout Publisher" Text[250]

Specifies the publisher of the email body layout that is used.

"Email Body Layout Caption" Text[250]
"Report Layout Name" Text[250]

Specifies the name of the report layout that is used.

"Report Layout AppID" Guid
"Report Layout Caption" Text[250]

Specifies the Name of the report layout that is used.

"Report Layout Publisher" Text[250]

Specifies the publisher of the email Attachment layout that is used.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

NewRecord

procedure NewRecord()

InsertRecord

procedure InsertRecord(NewUsage: Enum "Report Selection Usage", NewSequence: Code[10], NewReportID: Integer)

Parameters

Name Type Description
NewUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
NewSequence Code[10]
NewReportID Integer

DrillDownToSelectLayout

procedure DrillDownToSelectLayout(var SelectedLayoutName: Text[250], var SelectedLayoutAppID: Guid)

Parameters

Name Type Description
SelectedLayoutName Text[250]
SelectedLayoutAppID Guid

SetEmailUsageFilters

procedure SetEmailUsageFilters(ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

SetEmailBodyUsageFilters

procedure SetEmailBodyUsageFilters(ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

SetEmailAttachmentUsageFilters

procedure SetEmailAttachmentUsageFilters(ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

FindReportUsageForCust

procedure FindReportUsageForCust(ReportUsage: Enum "Report Selection Usage", CustNo: Code[20], var ReportSelections: Record "Report Selections" temporary)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
CustNo Code[20]
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

FindReportUsageForVend

procedure FindReportUsageForVend(ReportUsage: Enum "Report Selection Usage", VendorNo: Code[20], var ReportSelections: Record "Report Selections" temporary)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
VendorNo Code[20]
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

FindEmailAttachmentUsageForCust

procedure FindEmailAttachmentUsageForCust(ReportUsage: Enum "Report Selection Usage", CustNo: Code[20], var TempReportSelections: Record "Report Selections" temporary): Boolean

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
CustNo Code[20]
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

Returns

Type Description
Boolean

FindEmailAttachmentUsageForVend

procedure FindEmailAttachmentUsageForVend(ReportUsage: Enum "Report Selection Usage", VendorNo: Code[20], var TempReportSelections: Record "Report Selections" temporary): Boolean

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
VendorNo Code[20]
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

Returns

Type Description
Boolean

FindEmailBodyUsageForCust

procedure FindEmailBodyUsageForCust(ReportUsage: Enum "Report Selection Usage", CustNo: Code[20], var TempReportSelections: Record "Report Selections" temporary): Boolean

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
CustNo Code[20]
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

Returns

Type Description
Boolean

FindEmailBodyUsageForVend

procedure FindEmailBodyUsageForVend(ReportUsage: Enum "Report Selection Usage", VendorNo: Code[20], var TempReportSelections: Record "Report Selections" temporary): Boolean

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
VendorNo Code[20]
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

Returns

Type Description
Boolean

PrintWithCheckForCust

procedure PrintWithCheckForCust(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustomerNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustomerNoFieldNo Integer

PrintWithDialogWithCheckForCust

procedure PrintWithDialogWithCheckForCust(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, IsGUI: Boolean, CustomerNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
IsGUI Boolean
CustomerNoFieldNo Integer

PrintWithCheckForVend

procedure PrintWithCheckForVend(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, VendorNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
VendorNoFieldNo Integer

PrintWithDialogWithCheckForVend

procedure PrintWithDialogWithCheckForVend(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, IsGUI: Boolean, VendorNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
IsGUI Boolean
VendorNoFieldNo Integer

PrintReport

procedure PrintReport(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant

PrintForCust

procedure PrintForCust(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustomerNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustomerNoFieldNo Integer

PrintWithDialogForCust

procedure PrintWithDialogForCust(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, IsGUI: Boolean, CustomerNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
IsGUI Boolean
CustomerNoFieldNo Integer

PrintWithDialogForVend

procedure PrintWithDialogForVend(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, IsGUI: Boolean, VendorNoFieldNo: Integer)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
IsGUI Boolean
VendorNoFieldNo Integer

GetFilteredRecordRef

procedure GetFilteredRecordRef(var RecRefToPrint: RecordRef, RecRefSource: RecordRef, AccountNoFieldNo: Integer, AccountNoFilter: Text)

Parameters

Name Type Description
RecRefToPrint RecordRef
RecRefSource RecordRef
AccountNoFieldNo Integer
AccountNoFilter Text

GetAccountNoFilterForCustomReportLayout

procedure GetAccountNoFilterForCustomReportLayout(var TempReportSelections: Record "Report Selections" temporary, var TempNameValueBuffer: Record "Name/Value Buffer" temporary, TableNo: Integer): Text

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
TempNameValueBuffer Table Microsoft.Utilities."Name/Value Buffer"
TableNo Integer

Returns

Type Description
Text

SelectTempReportSelections

procedure SelectTempReportSelections(var TempReportSelections: Record "Report Selections" temporary, AccountNo: Code[20], WithCheck: Boolean, ReportUsage: Enum "Report Selection Usage", TableNo: Integer)

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
AccountNo Code[20]
WithCheck Boolean
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
TableNo Integer

SelectTempReportSelectionsToPrint

procedure SelectTempReportSelectionsToPrint(var TempReportSelections: Record "Report Selections" temporary, var TempNameValueBuffer: Record "Name/Value Buffer" temporary, WithCheck: Boolean, ReportUsage: Enum "Report Selection Usage", TableNo: Integer)

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
TempNameValueBuffer Table Microsoft.Utilities."Name/Value Buffer"
WithCheck Boolean
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
TableNo Integer

GetPdfReportForCust

procedure GetPdfReportForCust(var TempBlob: Codeunit "Temp Blob", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20])

Parameters

Name Type Description
TempBlob Codeunit System.Utilities."Temp Blob"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]

GetEmailBodyForCust

Gets the email body for a customer into tempblob.

procedure GetEmailBodyForCust(var EmailBody: Codeunit "Temp Blob", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var CustEmailAddress: Text[250]): Boolean

Parameters

Name Type Description
EmailBody Codeunit System.Utilities."Temp Blob"

Return value: TempBlob containing the email body

ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

Report usage enum

RecordVariant Variant

Related record variant

CustNo Code[20]

Customer number

CustEmailAddress Text[250]

Return Customer email adddress.

Returns

Type Description
Boolean

True if email body was successfully generated, false if no report selection template was found

GetEmailBodyTextForCust

Gets the email body for a customer into tempblob.

procedure GetEmailBodyTextForCust(var EmailBody: Codeunit "Temp Blob", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var CustEmailAddress: Text[250], EmailBodyText: Text): Boolean

Parameters

Name Type Description
EmailBody Codeunit System.Utilities."Temp Blob"

Return value: TempBlob containing the email body

ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

Report usage enum

RecordVariant Variant

Related record variant

CustNo Code[20]

Customer number

CustEmailAddress Text[250]

Return value: Customer email adddress.

EmailBodyText Text

Email body text added to an email

Returns

Type Description
Boolean

True if email body was successfully generated, false if no report selection template was found.

GetEmailAddressIgnoringLayout

procedure GetEmailAddressIgnoringLayout(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20]): Text[250]

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]

Returns

Type Description
Text[250]

GetEmailAddressExt

procedure GetEmailAddressExt(ReportUsage: Integer, RecordVariant: Variant, CustNo: Code[20], var TempBodyReportSelections: Record "Report Selections" temporary): Text[250]

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustNo Code[20]
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

Returns

Type Description
Text[250]

GetEmailBodyForVend

procedure GetEmailBodyForVend(var EmailBody: Codeunit "Temp Blob", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, VendorNo: Code[20], var VendorEmailAddress: Text[250]): Boolean

Parameters

Name Type Description
EmailBody Codeunit System.Utilities."Temp Blob"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
VendorNo Code[20]
VendorEmailAddress Text[250]

Returns

Type Description
Boolean

GetJobQueueParameters

procedure GetJobQueueParameters(var ParameterString: Text, var ReportUsage: Integer, var DocNo: Code[20], var DocName: Text[150], var CustNo: Code[20]): Boolean

Parameters

Name Type Description
ParameterString Text
ReportUsage Integer
DocNo Code[20]
DocName Text[150]
CustNo Code[20]

Returns

Type Description
Boolean

RunGetNextJobQueueParam

procedure RunGetNextJobQueueParam(var Parameter: Text): Text

Parameters

Name Type Description
Parameter Text

Returns

Type Description
Text

EnqueueMailingJob

procedure EnqueueMailingJob(RecordIdToProcess: RecordId, ParameterString: Text, Description: Text)

Parameters

Name Type Description
RecordIdToProcess RecordId
ParameterString Text
Description Text

GetMailingJobCategory

procedure GetMailingJobCategory(): Code[10]

Returns

Type Description
Code[10]

SaveAsDocumentAttachment

procedure SaveAsDocumentAttachment(ReportUsage: Integer, RecordVariant: Variant, DocumentNo: Code[20], AccountNo: Code[20], ShowNotificationAction: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocumentNo Code[20]
AccountNo Code[20]
ShowNotificationAction Boolean

SendEmailToCust

procedure SendEmailToCust(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], DocName: Text[150], ShowDialog: Boolean, CustNo: Code[20])

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
ShowDialog Boolean
CustNo Code[20]

ShouldSendToCustDirectly

procedure ShouldSendToCustDirectly(ReportUsageEnum: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20]): Boolean

Parameters

Name Type Description
ReportUsageEnum Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]

Returns

Type Description
Boolean

SendEmailToVendor

procedure SendEmailToVendor(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], DocName: Text[150], ShowDialog: Boolean, VendorNo: Code[20])

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
ShowDialog Boolean
VendorNo Code[20]

GetEmailAddressForDoc

procedure GetEmailAddressForDoc(DocumentNo: Code[20], ReportUsage: Enum "Report Selection Usage"): Text[250]

Parameters

Name Type Description
DocumentNo Code[20]
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

Returns

Type Description
Text[250]

GetEmailAddressForCust

procedure GetEmailAddressForCust(BillToCustomerNo: Code[20], ReportUsage: Enum "Report Selection Usage"): Text[250]

Parameters

Name Type Description
BillToCustomerNo Code[20]
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

Returns

Type Description
Text[250]

GetEmailAddressForVend

procedure GetEmailAddressForVend(BuyFromVendorNo: Code[20], RecVar: Variant, ReportUsage: Enum "Report Selection Usage"): Text[250]

Parameters

Name Type Description
BuyFromVendorNo Code[20]
RecVar Variant
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

Returns

Type Description
Text[250]

SaveReportAsPDFInTempBlob

procedure SaveReportAsPDFInTempBlob(var TempBlob: Codeunit "Temp Blob", ReportID: Integer, RecordVariant: Variant, LayoutCode: Code[20], ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
TempBlob Codeunit System.Utilities."Temp Blob"
ReportID Integer
RecordVariant Variant
LayoutCode Code[20]
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

FindReportSelections

procedure FindReportSelections(var TempReportSelections: Record "Report Selections" temporary, AccountNo: Code[20], TableNo: Integer): Boolean

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
AccountNo Code[20]
TableNo Integer

Returns

Type Description
Boolean

CopyCustomReportSectionToReportSelection

procedure CopyCustomReportSectionToReportSelection(AccountNo: Code[20], var TempToReportSelections: Record "Report Selections" temporary, TableNo: Integer): Boolean

Parameters

Name Type Description
AccountNo Code[20]
TempToReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
TableNo Integer

Returns

Type Description
Boolean

CopyReportSelectionToReportSelection

procedure CopyReportSelectionToReportSelection(var TempToReportSelections: Record "Report Selections" temporary): Boolean

Parameters

Name Type Description
TempToReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

Returns

Type Description
Boolean

GetCustomReportSelectionByUsageOption

procedure GetCustomReportSelectionByUsageOption(var CustomReportSelection: Record "Custom Report Selection", AccountNo: Code[20], ReportUsage: Enum "Report Selection Usage", TableNo: Integer): Boolean

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
AccountNo Code[20]
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
TableNo Integer

Returns

Type Description
Boolean

GetUniqueAccountNos

procedure GetUniqueAccountNos(var TempNameValueBuffer: Record "Name/Value Buffer" temporary, RecRef: RecordRef, AccountNoFieldNo: Integer)

Parameters

Name Type Description
TempNameValueBuffer Table Microsoft.Utilities."Name/Value Buffer"
RecRef RecordRef
AccountNoFieldNo Integer

PrintReportsForUsage

procedure PrintReportsForUsage(ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

ShowNoBodyNoAttachmentError

procedure ShowNoBodyNoAttachmentError(ReportUsage: Enum "Report Selection Usage", FoundBody: Boolean, FoundAttachment: Boolean)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
FoundBody Boolean
FoundAttachment Boolean

ConvertReportUsageToSalesDocumentType

procedure ConvertReportUsageToSalesDocumentType(var DocumentType: Enum "Sales Document Type", ReportUsage: Enum "Report Selection Usage"): Boolean

Parameters

Name Type Description
DocumentType Enum Microsoft.Sales.Document."Sales Document Type"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

Returns

Type Description
Boolean

IsSalesDocument

procedure IsSalesDocument(RecordRef: RecordRef): Boolean

Parameters

Name Type Description
RecordRef RecordRef

Returns

Type Description
Boolean

Events

OnAfterGetCustomReportSelection

[IntegrationEvent(False,False)]
local procedure OnAfterGetCustomReportSelection(var CustomReportSelection: Record "Custom Report Selection", AccountNo: Code[20], TableNo: Integer)

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
AccountNo Code[20]
TableNo Integer

OnAfterSetEmailBodyUsageFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetEmailBodyUsageFilters(var ReportSelections: Record "Report Selections", ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

OnAfterSetEmailAttachmentUsageFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetEmailAttachmentUsageFilters(var ReportSelections: Record "Report Selections", ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

OnAfterSetEmailUsageFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetEmailUsageFilters(var ReportSelections: Record "Report Selections", ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

OnAfterSaveReportAsPDF

[IntegrationEvent(False,False)]
local procedure OnAfterSaveReportAsPDF(ReportID: Integer, RecordVariant: Variant, LayoutCode: Code[20], FilePath: Text[250], SaveToBlob: Boolean, var TempBlob: Codeunit "Temp Blob", var ReportSelections: Record "Report Selections", ReportUsage: Enum "Report Selection Usage")

Parameters

Name Type Description
ReportID Integer
RecordVariant Variant
LayoutCode Code[20]
FilePath Text[250]
SaveToBlob Boolean
TempBlob Codeunit System.Utilities."Temp Blob"
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"

OnAfterCanSaveReportAsPDF

[IntegrationEvent(False,False)]
local procedure OnAfterCanSaveReportAsPDF(ReportId: Integer, var Result: Boolean)

Parameters

Name Type Description
ReportId Integer
Result Boolean

OnBeforeCheckEmailBodyUsage

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckEmailBodyUsage(var ReportSelections: Record "Report Selections", var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean

OnBeforeDoSaveReportAsHTML

Obsolete

This element will become obsolete from version 27.0. This event will be removed. Please use Event OnBeforeDoSaveReportAsHTMLInTempBlob instead.

[Obsolete(This event will be removed. Please use Event OnBeforeDoSaveReportAsHTMLInTempBlob instead.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeDoSaveReportAsHTML(ReportID: Integer, var FilePath: Text[250], var RecordVariant: Variant, var IsHandled: Boolean)

Parameters

Name Type Description
ReportID Integer
FilePath Text[250]
RecordVariant Variant
IsHandled Boolean

OnBeforeDoSaveReportAsHTMLInTempBlob

[IntegrationEvent(False,False)]
local procedure OnBeforeDoSaveReportAsHTMLInTempBlob(ReportID: Integer, var TemBlob: Codeunit "Temp Blob", var RecordVariant: Variant, var IsHandled: Boolean)

Parameters

Name Type Description
ReportID Integer
TemBlob Codeunit System.Utilities."Temp Blob"
RecordVariant Variant
IsHandled Boolean

OnBeforeGetCustEmailAddress

[IntegrationEvent(False,False)]
local procedure OnBeforeGetCustEmailAddress(BillToCustomerNo: Code[20], var ToAddress: Text, ReportUsage: Option, var IsHandled: Boolean)

Parameters

Name Type Description
BillToCustomerNo Code[20]
ToAddress Text
ReportUsage Option
IsHandled Boolean

OnBeforeGetHtmlReport

[IntegrationEvent(False,False)]
local procedure OnBeforeGetHtmlReport(var DocumentContent: Text, ReportUsage: Integer, RecordVariant: Variant, CustNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
DocumentContent Text
ReportUsage Integer
RecordVariant Variant
CustNo Code[20]
IsHandled Boolean

OnBeforeGetVendorEmailAddress

[IntegrationEvent(False,False)]
local procedure OnBeforeGetVendorEmailAddress(BuyFromVendorNo: Code[20], var ToAddress: Text, ReportUsage: Option, var IsHandled: Boolean, RecVar: Variant)

Parameters

Name Type Description
BuyFromVendorNo Code[20]
ToAddress Text
ReportUsage Option
IsHandled Boolean
RecVar Variant

OnBeforeGetEmailAddress

[IntegrationEvent(False,False)]
local procedure OnBeforeGetEmailAddress(ReportUsage: Option, RecordVariant: Variant, var TempBodyReportSelections: Record "Report Selections" temporary, var EmailAddress: Text[250], var IsHandled: Boolean, CustNo: Code[20])

Parameters

Name Type Description
ReportUsage Option
RecordVariant Variant
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
EmailAddress Text[250]
IsHandled Boolean
CustNo Code[20]

OnBeforeGetEmailAddressIgnoringLayout

[IntegrationEvent(False,False)]
local procedure OnBeforeGetEmailAddressIgnoringLayout(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, var TempBodyReportSelections: Record "Report Selections" temporary, CustNo: Code[20], var EmailAddress: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustNo Code[20]
EmailAddress Text[250]
IsHandled Boolean

OnBeforeGetCustomReportSelection

[IntegrationEvent(False,False)]
local procedure OnBeforeGetCustomReportSelection(var ReportSelections: Record "Report Selections", var CustomReportSelection: Record "Custom Report Selection", AccountNo: Code[20], TableNo: Integer, var ReturnValue: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
AccountNo Code[20]
TableNo Integer
ReturnValue Boolean
IsHandled Boolean

OnBeforePrint

[IntegrationEvent(False,False)]
local procedure OnBeforePrint(ReportUsage: Integer, RecordVariant: Variant, CustomerNoFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustomerNoFieldNo Integer
Handled Boolean

OnBeforePrintForUsage

[IntegrationEvent(False,False)]
local procedure OnBeforePrintForUsage(var ReportUsage: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
IsHandled Boolean

OnBeforePrintWithCheck

[IntegrationEvent(False,False)]
local procedure OnBeforePrintWithCheck(ReportUsage: Integer, RecordVariant: Variant, CustomerNoFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustomerNoFieldNo Integer
Handled Boolean

OnBeforePrintWithCheckForVend

[IntegrationEvent(False,False)]
local procedure OnBeforePrintWithCheckForVend(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, VendorNoFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
VendorNoFieldNo Integer
IsHandled Boolean

OnBeforePrintWithGUIYesNoWithCheck

[IntegrationEvent(False,False)]
local procedure OnBeforePrintWithGUIYesNoWithCheck(ReportUsage: Integer, RecordVariant: Variant, IsGUI: Boolean, CustomerNoFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
IsGUI Boolean
CustomerNoFieldNo Integer
Handled Boolean

OnBeforePrintWithGUIYesNoWithCheckVendor

[IntegrationEvent(False,False)]
local procedure OnBeforePrintWithGUIYesNoWithCheckVendor(ReportUsage: Integer, RecordVariant: Variant, IsGUI: Boolean, VendorNoFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
IsGUI Boolean
VendorNoFieldNo Integer
Handled Boolean

OnBeforePrintWithGUIYesNo

[IntegrationEvent(False,False)]
local procedure OnBeforePrintWithGUIYesNo(ReportUsage: Integer, RecordVariant: Variant, IsGUI: Boolean, CustomerNoFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
IsGUI Boolean
CustomerNoFieldNo Integer
Handled Boolean

OnBeforePrintWithGUIYesNoVendor

[IntegrationEvent(False,False)]
local procedure OnBeforePrintWithGUIYesNoVendor(ReportUsage: Integer, RecordVariant: Variant, IsGUI: Boolean, VendorNoFieldNo: Integer, var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
IsGUI Boolean
VendorNoFieldNo Integer
Handled Boolean

OnBeforeSaveReportAsPDF

[IntegrationEvent(False,False)]
local procedure OnBeforeSaveReportAsPDF(var ReportID: Integer, RecordVariant: Variant, var LayoutCode: Code[20], var IsHandled: Boolean, FilePath: Text[250], ReportUsage: Enum "Report Selection Usage", SaveToBlob: Boolean, var TempBlob: Codeunit "Temp Blob", var ReportSelections: Record "Report Selections")

Parameters

Name Type Description
ReportID Integer
RecordVariant Variant
LayoutCode Code[20]
IsHandled Boolean
FilePath Text[250]
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
SaveToBlob Boolean
TempBlob Codeunit System.Utilities."Temp Blob"
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

OnBeforeSetReportLayout

[IntegrationEvent(True,False)]
local procedure OnBeforeSetReportLayout(RecordVariant: Variant, ReportUsage: Integer)

Parameters

Name Type Description
RecordVariant Variant
ReportUsage Integer

OnBeforeSendEmailToCust

[IntegrationEvent(False,False)]
local procedure OnBeforeSendEmailToCust(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], DocName: Text[150], var ShowDialog: Boolean, CustNo: Code[20], var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
ShowDialog Boolean
CustNo Code[20]
Handled Boolean

OnBeforeSendEmailToVendor

[IntegrationEvent(False,False)]
local procedure OnBeforeSendEmailToVendor(ReportUsage: Integer, RecordVariant: Variant, DocNo: Code[20], DocName: Text[150], var ShowDialog: Boolean, VendorNo: Code[20], var Handled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
ShowDialog Boolean
VendorNo Code[20]
Handled Boolean

OnEnqueueMailingJobOnBeforeRunJobQueueEnqueue

[IntegrationEvent(False,False)]
local procedure OnEnqueueMailingJobOnBeforeRunJobQueueEnqueue(RecordIdToProcess: RecordId, ParameterString: Text, Description: Text, var JobQueueEntry: Record "Job Queue Entry", var IsHandled: Boolean)

Parameters

Name Type Description
RecordIdToProcess RecordId
ParameterString Text
Description Text
JobQueueEntry Table System.Threading."Job Queue Entry"
IsHandled Boolean

OnFindReportSelections

[IntegrationEvent(True,False)]
local procedure OnFindReportSelections(var FilterReportSelections: Record "Report Selections", var IsHandled: Boolean, var ReturnReportSelections: Record "Report Selections", AccountNo: Code[20], TableNo: Integer)

Parameters

Name Type Description
FilterReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean
ReturnReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
AccountNo Code[20]
TableNo Integer

OnBeforeGetEmailBodyCustomer

[IntegrationEvent(False,False)]
local procedure OnBeforeGetEmailBodyCustomer(ReportUsage: Integer, RecordVariant: Variant, var TempBodyReportSelections: Record "Report Selections" temporary, CustNo: Code[20], var CustEmailAddress: Text[250], var EmailBodyText: Text, var IsHandled: Boolean, var Result: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustNo Code[20]
CustEmailAddress Text[250]
EmailBodyText Text
IsHandled Boolean
Result Boolean

OnAfterGetEmailBodyCustomer

Obsolete

This element will become obsolete from version 27.0. Use new Event OnAfterGetEmailBodyCustomerProcedure instead.

[Obsolete(Use new Event OnAfterGetEmailBodyCustomerProcedure instead.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterGetEmailBodyCustomer(var CustomerEmailAddress: Text[250], ServerEmailBodyFilePath: Text[250], RecordVariant: Variant, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
CustomerEmailAddress Text[250]
ServerEmailBodyFilePath Text[250]
RecordVariant Variant
Result Boolean
IsHandled Boolean

OnAfterGetEmailBodyCustomerProcedure

[IntegrationEvent(False,False)]
local procedure OnAfterGetEmailBodyCustomerProcedure(var CustomerEmailAddress: Text[250], var EmailBody: Codeunit "Temp Blob", RecordVariant: Variant, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
CustomerEmailAddress Text[250]
EmailBody Codeunit System.Utilities."Temp Blob"
RecordVariant Variant
Result Boolean
IsHandled Boolean

OnBeforeGetEmailBodyVendor

[IntegrationEvent(False,False)]
local procedure OnBeforeGetEmailBodyVendor(ReportUsage: Integer, RecordVariant: Variant, var TempBodyReportSelections: Record "Report Selections" temporary, VendorNo: Code[20], var VendorEmailAddress: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
VendorNo Code[20]
VendorEmailAddress Text[250]
IsHandled Boolean

OnBeforeGetPurchaseOrderEmailAddress

[IntegrationEvent(False,False)]
local procedure OnBeforeGetPurchaseOrderEmailAddress(BuyFromVendorNo: Code[20], RecVar: Variant, ReportUsage: Enum "Report Selection Usage", var OrderAddress: Record "Order Address", var EmailAddress: Text[250], var IsHandled: Boolean)

Parameters

Name Type Description
BuyFromVendorNo Code[20]
RecVar Variant
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
OrderAddress Table Microsoft.Purchases.Vendor."Order Address"
EmailAddress Text[250]
IsHandled Boolean

OnAfterGetEmailBodyVendor

Obsolete

This element will become obsolete from version 27.0. Use new Event OnAfterGetEmailBodyVendorProcedure instead.

[Obsolete(Use new Event OnAfterGetEmailBodyVendorProcedure instead.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterGetEmailBodyVendor(var VendorEmailAddress: Text[250], ServerEmailBodyFilePath: Text[250], RecordVariant: Variant, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
VendorEmailAddress Text[250]
ServerEmailBodyFilePath Text[250]
RecordVariant Variant
Result Boolean
IsHandled Boolean

OnAfterGetEmailBodyVendorProcedure

[IntegrationEvent(False,False)]
local procedure OnAfterGetEmailBodyVendorProcedure(var VendorEmailAddress: Text[250], var EmailBody: Codeunit "Temp Blob", RecordVariant: Variant, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
VendorEmailAddress Text[250]
EmailBody Codeunit System.Utilities."Temp Blob"
RecordVariant Variant
Result Boolean
IsHandled Boolean

OnAfterSendEmailDirectly

[IntegrationEvent(False,False)]
local procedure OnAfterSendEmailDirectly(ReportUsage: Integer, RecordVariant: Variant, var AllEmailsWereSuccessful: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
AllEmailsWereSuccessful Boolean

OnAfterPrintDocument

[IntegrationEvent(False,False)]
local procedure OnAfterPrintDocument(TempReportSelections: Record "Report Selections" temporary, IsGUI: Boolean, RecVarToPrint: Variant, PrintDocumentWasHandled: Boolean)

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
IsGUI Boolean
RecVarToPrint Variant
PrintDocumentWasHandled Boolean

OnAfterPrintDocumentsWithCheckGUIYesNoCommon

[IntegrationEvent(False,False)]
local procedure OnAfterPrintDocumentsWithCheckGUIYesNoCommon(ReportUsage: Integer, RecVarToPrint: Variant)

Parameters

Name Type Description
ReportUsage Integer
RecVarToPrint Variant

OnBeforeDownloadAttachmentFromStream

[IntegrationEvent(False,False)]
local procedure OnBeforeDownloadAttachmentFromStream(var TempReportSelections: Record "Report Selections" temporary, RecordVariant: Variant, var AttachmentInStream: InStream, ClientAttachmentFileName: Text, var IsHandled: Boolean)

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
RecordVariant Variant
AttachmentInStream InStream
ClientAttachmentFileName Text
IsHandled Boolean

OnBeforeSaveDocumentAttachmentFromRecRef

[IntegrationEvent(False,False)]
local procedure OnBeforeSaveDocumentAttachmentFromRecRef(RecRef: RecordRef, var TempAttachReportSelections: Record "Report Selections", DocumentNo: Code[20], AccountNo: Code[20], var TempBlob: Codeunit "Temp Blob", var IsHandled: Boolean, var NumberOfReportsAttached: Integer)

Parameters

Name Type Description
RecRef RecordRef
TempAttachReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
DocumentNo Code[20]
AccountNo Code[20]
TempBlob Codeunit System.Utilities."Temp Blob"
IsHandled Boolean
NumberOfReportsAttached Integer

OnBeforePrintDocument

[IntegrationEvent(False,False)]
local procedure OnBeforePrintDocument(TempReportSelections: Record "Report Selections" temporary, IsGUI: Boolean, var RecVarToPrint: Variant, var IsHandled: Boolean)

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
IsGUI Boolean
RecVarToPrint Variant
IsHandled Boolean

OnBeforeSendEmailDirectly

Obsolete

This element will become obsolete from version 27.0. Use new Event OnSendEmailDirectlyOnBeforeSend instead.

[Obsolete(Use new Event OnSendEmailDirectlyOnBeforeSend instead.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeSendEmailDirectly(var ReportSelections: Record "Report Selections", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, var DocNo: Code[20], var DocName: Text[150], FoundBody: Boolean, FoundAttachment: Boolean, ServerEmailBodyFilePath: Text[250], var DefaultEmailAddress: Text[250], ShowDialog: Boolean, var TempAttachReportSelections: Record "Report Selections" temporary, var CustomReportSelection: Record "Custom Report Selection", var AllEmailsWereSuccessful: Boolean, var IsHandled: Boolean, var SourceTableIDs: List of [Integer], var SourceIDs: List of [Guid], var SourceRelationTypes: List of [Integer])

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
FoundBody Boolean
FoundAttachment Boolean
ServerEmailBodyFilePath Text[250]
DefaultEmailAddress Text[250]
ShowDialog Boolean
TempAttachReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
AllEmailsWereSuccessful Boolean
IsHandled Boolean
SourceTableIDs List of [Integer]
SourceIDs List of [Guid]
SourceRelationTypes List of [Integer]

OnSendEmailDirectlyOnBeforeSend

[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnBeforeSend(var ReportSelections: Record "Report Selections", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, var DocNo: Code[20], var DocName: Text[150], FoundBody: Boolean, FoundAttachment: Boolean, var EmailBody: Codeunit "Temp Blob", var DefaultEmailAddress: Text[250], ShowDialog: Boolean, var TempAttachReportSelections: Record "Report Selections" temporary, var CustomReportSelection: Record "Custom Report Selection", var AllEmailsWereSuccessful: Boolean, var IsHandled: Boolean, var SourceTableIDs: List of [Integer], var SourceIDs: List of [Guid], var SourceRelationTypes: List of [Integer])

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
FoundBody Boolean
FoundAttachment Boolean
EmailBody Codeunit System.Utilities."Temp Blob"
DefaultEmailAddress Text[250]
ShowDialog Boolean
TempAttachReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
AllEmailsWereSuccessful Boolean
IsHandled Boolean
SourceTableIDs List of [Integer]
SourceIDs List of [Guid]
SourceRelationTypes List of [Integer]

OnCheckEmailBodyUsageOnAfterCalcShowEmailBodyDefinedError

[IntegrationEvent(False,False)]
local procedure OnCheckEmailBodyUsageOnAfterCalcShowEmailBodyDefinedError(var Rec: Record "Report Selections", var ReportSelections: Record "Report Selections", var ShowEmailBodyDefinedError: Boolean)

Parameters

Name Type Description
Rec Table Microsoft.Foundation.Reporting."Report Selections"
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ShowEmailBodyDefinedError Boolean

OnCopyToReportSelectionOnBeforInsertToReportSelections

[IntegrationEvent(False,False)]
local procedure OnCopyToReportSelectionOnBeforInsertToReportSelections(var ReportSelections: Record "Report Selections", CustomReportSelection: Record "Custom Report Selection")

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"

OnGetEmailAddressOnAfterGetEmailAddressForCust

[IntegrationEvent(False,False)]
local procedure OnGetEmailAddressOnAfterGetEmailAddressForCust(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, var TempBodyReportSelections: Record "Report Selections" temporary, var EmailAddress: Text[250], CustNo: Code[20])

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
EmailAddress Text[250]
CustNo Code[20]

OnGetEmailBodyCustomerTextOnAfterNotFindEmailBodyUsage

[IntegrationEvent(False,False)]
local procedure OnGetEmailBodyCustomerTextOnAfterNotFindEmailBodyUsage(ReportUsage: Integer, RecordVariant: Variant, CustNo: Code[20], var TempBodyReportSelections: Record "Report Selections" temporary, var IsHandled: Boolean, var EmailBodyUsageFound: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustNo Code[20]
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean
EmailBodyUsageFound Boolean

OnGetEmailBodyVendorTextOnAfterNotFindEmailBodyUsage

[IntegrationEvent(False,False)]
local procedure OnGetEmailBodyVendorTextOnAfterNotFindEmailBodyUsage(ReportUsage: Integer, RecordVariant: Variant, CustNo: Code[20], var TempBodyReportSelections: Record "Report Selections" temporary, var IsHandled: Boolean, var EmailBodyUsageFound: Boolean)

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
CustNo Code[20]
TempBodyReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean
EmailBodyUsageFound Boolean

OnPrintDocumentsOnAfterSelectTempReportSelectionsToPrint

[IntegrationEvent(False,False)]
local procedure OnPrintDocumentsOnAfterSelectTempReportSelectionsToPrint(RecordVariant: Variant, var TempReportSelections: Record "Report Selections" temporary, var TempNameValueBuffer: Record "Name/Value Buffer" temporary, var WithCheck: Boolean, ReportUsage: Integer, TableNo: Integer)

Parameters

Name Type Description
RecordVariant Variant
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
TempNameValueBuffer Table Microsoft.Utilities."Name/Value Buffer"
WithCheck Boolean
ReportUsage Integer
TableNo Integer

OnSendEmailDirectlyOnBeforeSendFileLoop

Obsolete

This element will become obsolete from version 27.0. Use new Event OnSendEmailDirectlyOnBeforeSendSingleFile instead.

[Obsolete(Use new Event OnSendEmailDirectlyOnBeforeSendSingleFile instead.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnBeforeSendFileLoop(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, DocNo: Code[20], var DocName: Text[150], var DefaultEmailAddress: Text[250], ShowDialog: Boolean, var TempAttachReportSelections: Record "Report Selections" temporary, var CustomReportSelection: Record "Custom Report Selection", var IsHandled: Boolean, var ServerEmailBodyFilePath: Text[250])

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
DefaultEmailAddress Text[250]
ShowDialog Boolean
TempAttachReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
IsHandled Boolean
ServerEmailBodyFilePath Text[250]

OnSendEmailDirectlyOnBeforeSendSingleFile

[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnBeforeSendSingleFile(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, DocNo: Code[20], var DocName: Text[150], var DefaultEmailAddress: Text[250], ShowDialog: Boolean, var TempAttachReportSelections: Record "Report Selections" temporary, var CustomReportSelection: Record "Custom Report Selection", var IsHandled: Boolean, var EmailBody: Codeunit "Temp Blob")

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocNo Code[20]
DocName Text[150]
DefaultEmailAddress Text[250]
ShowDialog Boolean
TempAttachReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
IsHandled Boolean
EmailBody Codeunit System.Utilities."Temp Blob"

OnSendEmailDirectlyOnBeforeSendFiles

[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnBeforeSendFiles(ReportUsage: Integer, RecordVariant: Variant, var DefaultEmailAddress: Text[250], var TempAttachReportSelections: Record "Report Selections" temporary, var CustomReportSelection: Record "Custom Report Selection", var ReportSelections: Record "Report Selections")

Parameters

Name Type Description
ReportUsage Integer
RecordVariant Variant
DefaultEmailAddress Text[250]
TempAttachReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

OnSendEmailDirectlyOnBeforeEmailWithAttachment

[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnBeforeEmailWithAttachment(RecordVariant: Variant, ReportSelection: Record "Report Selections", var TempBlob: Codeunit "Temp Blob", var DocumentMailing: Codeunit "Document-Mailing", DocumentNo: Code[20], DocumentName: Text[150], EmailAddress: Text[250])

Parameters

Name Type Description
RecordVariant Variant
ReportSelection Table Microsoft.Foundation.Reporting."Report Selections"
TempBlob Codeunit System.Utilities."Temp Blob"
DocumentMailing Codeunit System.EMail."Document-Mailing"
DocumentNo Code[20]
DocumentName Text[150]
EmailAddress Text[250]

OnSendEmailDirectlyOnBeforeSaveReportAsPDFInTempBlob

[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnBeforeSaveReportAsPDFInTempBlob(ReportSelection: Record "Report Selections", RecordVariant: Variant, ReportUsage: Enum "Report Selection Usage", var TempBlob: Codeunit "Temp Blob", var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelection Table Microsoft.Foundation.Reporting."Report Selections"
RecordVariant Variant
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
TempBlob Codeunit System.Utilities."Temp Blob"
IsHandled Boolean

OnSendEmailInBackgroundOnAfterGetJobQueueParameters

[IntegrationEvent(False,False)]
local procedure OnSendEmailInBackgroundOnAfterGetJobQueueParameters(var RecRef: RecordRef, var ParamString: Text)

Parameters

Name Type Description
RecRef RecordRef
ParamString Text

OnSendEmailToCustOnAfterSetParameterString

[IntegrationEvent(False,False)]
local procedure OnSendEmailToCustOnAfterSetParameterString(var RecRef: RecordRef, var ParameterString: Text)

Parameters

Name Type Description
RecRef RecordRef
ParameterString Text

OnSendEmailToVendorOnAfterSetParameterString

[IntegrationEvent(False,False)]
local procedure OnSendEmailToVendorOnAfterSetParameterString(var RecRef: RecordRef, var ParameterString: Text)

Parameters

Name Type Description
RecRef RecordRef
ParameterString Text

OnSendToDiskForCustOnBeforeSendFileLoop

[IntegrationEvent(False,False)]
local procedure OnSendToDiskForCustOnBeforeSendFileLoop(var ReportSelections: Record "Report Selections" temporary, var RecordVariant: Variant)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
RecordVariant Variant

OnSendToDiskForVendOnBeforeSendFileLoop

[IntegrationEvent(False,False)]
local procedure OnSendToDiskForVendOnBeforeSendFileLoop(var ReportSelections: Record "Report Selections" temporary, var RecordVariant: Variant)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
RecordVariant Variant

OnSendToZipForCustOnBeforeSendFileLoop

[IntegrationEvent(False,False)]
local procedure OnSendToZipForCustOnBeforeSendFileLoop(var ReportSelections: Record "Report Selections" temporary, var RecordVariant: Variant)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
RecordVariant Variant

OnSendToZipForVendOnBeforeSendFileLoop

[IntegrationEvent(False,False)]
local procedure OnSendToZipForVendOnBeforeSendFileLoop(var ReportSelections: Record "Report Selections" temporary, var RecordVariant: Variant)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
RecordVariant Variant

OnSaveAsDocumentAttachmentOnBeforeShowNotification

[IntegrationEvent(False,False)]
local procedure OnSaveAsDocumentAttachmentOnBeforeShowNotification(RecordVariant: Variant, NumberOfReportsAttached: Integer, ShowNotificationAction: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
RecordVariant Variant
NumberOfReportsAttached Integer
ShowNotificationAction Boolean
IsHandled Boolean

OnSaveReportAsHTMLOnBeforeSetTempLayoutSelected

[IntegrationEvent(False,False)]
local procedure OnSaveReportAsHTMLOnBeforeSetTempLayoutSelected(RecordVariant: Variant, ReportUsage: Enum "Report Selection Usage", var ReportID: Integer, var LayoutCode: Code[20], var LayoutName: Text[250])

Parameters

Name Type Description
RecordVariant Variant
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
ReportID Integer
LayoutCode Code[20]
LayoutName Text[250]

OnGetNextEmailAddressFromCustomReportSelectionOnAfterCustomReportSelectionSetFilters

[IntegrationEvent(False,False)]
local procedure OnGetNextEmailAddressFromCustomReportSelectionOnAfterCustomReportSelectionSetFilters(var CustomReportSelection: Record "Custom Report Selection")

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"

OnAfterSendToZipForCust

[IntegrationEvent(False,False)]
local procedure OnAfterSendToZipForCust(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, var DataCompression: Codeunit "Data Compression")

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DataCompression Codeunit System.IO."Data Compression"

OnAfterSendToZipForVend

[IntegrationEvent(False,False)]
local procedure OnAfterSendToZipForVend(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, var DataCompression: Codeunit "Data Compression")

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DataCompression Codeunit System.IO."Data Compression"

OnBeforeSaveAsDocumentAttachment

[IntegrationEvent(False,False)]
local procedure OnBeforeSaveAsDocumentAttachment(ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, DocumentNo: Code[20], AccountNo: Code[20], ShowNotificationAction: Boolean)

Parameters

Name Type Description
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
DocumentNo Code[20]
AccountNo Code[20]
ShowNotificationAction Boolean

OnSaveAsDocumentAttachmentOnBeforeCanSaveReportAsPDF

[IntegrationEvent(False,False)]
local procedure OnSaveAsDocumentAttachmentOnBeforeCanSaveReportAsPDF(var TempAttachReportSelections: Record "Report Selections" temporary, RecRef: RecordRef, DocumentNo: Code[20], AccountNo: Code[20], NumberOfReportsAttached: Integer)

Parameters

Name Type Description
TempAttachReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
RecRef RecordRef
DocumentNo Code[20]
AccountNo Code[20]
NumberOfReportsAttached Integer

OnGetAccountNoFilterForCustomReportLayoutOnAfterSetCustomReportSelectionFilters

[IntegrationEvent(False,False)]
local procedure OnGetAccountNoFilterForCustomReportLayoutOnAfterSetCustomReportSelectionFilters(var CustomReportSelection: Record "Custom Report Selection", var TempReportSelections: Record "Report Selections" temporary)

Parameters

Name Type Description
CustomReportSelection Table Microsoft.Foundation.Reporting."Custom Report Selection"
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

OnBeforeNewRecord

[IntegrationEvent(False,False)]
local procedure OnBeforeNewRecord(var ReportSelections: Record "Report Selections", var ReportSelections2: Record "Report Selections")

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
ReportSelections2 Table Microsoft.Foundation.Reporting."Report Selections"

OnBeforeCopyCustomReportSectionToReportSelection

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyCustomReportSectionToReportSelection(var ReportSelectionsOrg: Record "Report Selections", var IsHandled: Boolean, var Result: Boolean)

Parameters

Name Type Description
ReportSelectionsOrg Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean
Result Boolean

OnGetLastSequenceNoOnBeforeFillEmptySequence

[IntegrationEvent(False,False)]
local procedure OnGetLastSequenceNoOnBeforeFillEmptySequence(var TempReportSelections: Record "Report Selections", var IsHandled: Boolean)

Parameters

Name Type Description
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean

OnGetEmailBodyTextForCustOnBeforeFindEmailBodyUsageForCust

[IntegrationEvent(False,False)]
local procedure OnGetEmailBodyTextForCustOnBeforeFindEmailBodyUsageForCust(var ReportSelectionsOrg: Record "Report Selections", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var ReportSelections: Record "Report Selections", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelectionsOrg Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
Result Boolean
IsHandled Boolean

OnGetHtmlReportForCustOnBeforeFindReportUsage

[IntegrationEvent(False,False)]
local procedure OnGetHtmlReportForCustOnBeforeFindReportUsage(var ReportSelectionsOrg: Record "Report Selections", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var ReportSelectionsPart: Record "Report Selections", var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelectionsOrg Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]
ReportSelectionsPart Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean

OnSendToZipForCustOnBeforeFindReportUsageForCust

[IntegrationEvent(False,False)]
local procedure OnSendToZipForCustOnBeforeFindReportUsageForCust(var ReportSelectionsOrg: Record "Report Selections", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var ReportSelectionsPart: Record "Report Selections", var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelectionsOrg Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]
ReportSelectionsPart Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean

OnSendToDiskForCustOnBeforeFindReportUsage

[IntegrationEvent(False,False)]
local procedure OnSendToDiskForCustOnBeforeFindReportUsage(var ReportSelectionsOrg: Record "Report Selections", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var ReportSelectionsPart: Record "Report Selections", var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelectionsOrg Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]
ReportSelectionsPart Table Microsoft.Foundation.Reporting."Report Selections"
IsHandled Boolean

OnSendEmailToCustDirectlyOnBeforeFindEmailAttachmentUsageForCust

[IntegrationEvent(False,False)]
local procedure OnSendEmailToCustDirectlyOnBeforeFindEmailAttachmentUsageForCust(var ReportSelectionsOrg: Record "Report Selections", ReportUsage: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var ReportSelectionsPart: Record "Report Selections", var FoundAttachment: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ReportSelectionsOrg Table Microsoft.Foundation.Reporting."Report Selections"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]
ReportSelectionsPart Table Microsoft.Foundation.Reporting."Report Selections"
FoundAttachment Boolean
IsHandled Boolean

OnGetSendToCustomerDirectly

[IntegrationEvent(False,False)]
local procedure OnGetSendToCustomerDirectly(ReportUsageEnum: Enum "Report Selection Usage", RecordVariant: Variant, CustNo: Code[20], var ShowDialog: Boolean, var SendToCustomerDirectly: Boolean, var Handled: Boolean)

Parameters

Name Type Description
ReportUsageEnum Enum Microsoft.Foundation.Reporting."Report Selection Usage"
RecordVariant Variant
CustNo Code[20]
ShowDialog Boolean
SendToCustomerDirectly Boolean
Handled Boolean

OnReplaceHTMLText

Obsolete

This element will become obsolete from version 27.0. This event will be removed. Please use Event OnBeforeDoSaveReportAsHTMLInTempBlob instead.

[Obsolete(This event will be removed. Please use Event OnBeforeDoSaveReportAsHTMLInTempBlob instead.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnReplaceHTMLText(ReportID: Integer, var FilePath: Text[250], var RecordVariant: Variant, var IsHandled: Boolean)

Parameters

Name Type Description
ReportID Integer
FilePath Text[250]
RecordVariant Variant
IsHandled Boolean

OnAfterDoSaveReportAsHTMLInTempBlob

[IntegrationEvent(False,False)]
local procedure OnAfterDoSaveReportAsHTMLInTempBlob(ReportID: Integer, var TempBlob: Codeunit "Temp Blob", var RecordVariant: Variant)

Parameters

Name Type Description
ReportID Integer
TempBlob Codeunit System.Utilities."Temp Blob"
RecordVariant Variant

OnAfterIsCustomerAccount

[IntegrationEvent(False,False)]
local procedure OnAfterIsCustomerAccount(DocumentTableId: Integer, var IsCustomer: Boolean)

Parameters

Name Type Description
DocumentTableId Integer
IsCustomer Boolean

OnAfterIsVendorAccount

[IntegrationEvent(False,False)]
local procedure OnAfterIsVendorAccount(DocumentTableId: Integer, var IsVendor: Boolean)

Parameters

Name Type Description
DocumentTableId Integer
IsVendor Boolean

OnSendEmailDirectlyOnAfterSetFieldName

[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnAfterSetFieldName(DocumentTableID: Integer, var FieldName: Text)

Parameters

Name Type Description
DocumentTableID Integer
FieldName Text

OnBeforeConvertReportUsageToSalesDocumentType

[IntegrationEvent(False,False)]
local procedure OnBeforeConvertReportUsageToSalesDocumentType(var ReportSelections: Record "Report Selections", var DocumentType: Enum "Sales Document Type", ReportUsage: Enum "Report Selection Usage", var IsHandled: Boolean, var Result: Boolean)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
DocumentType Enum Microsoft.Sales.Document."Sales Document Type"
ReportUsage Enum Microsoft.Foundation.Reporting."Report Selection Usage"
IsHandled Boolean
Result Boolean

OnSendEmailDirectlyOnAfterEmailWithAttachment

[IntegrationEvent(False,False)]
local procedure OnSendEmailDirectlyOnAfterEmailWithAttachment(RecordVariant: Variant, var TempReportSelections: Record "Report Selections" temporary, var TempBlob: Codeunit "Temp Blob", var DocumentMailing: Codeunit "Document-Mailing", DocumentNo: Code[20], DocumentName: Text[150], EmailAddress: Text[250], AllEmailsWereSuccessful: Boolean)

Parameters

Name Type Description
RecordVariant Variant
TempReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
TempBlob Codeunit System.Utilities."Temp Blob"
DocumentMailing Codeunit System.EMail."Document-Mailing"
DocumentNo Code[20]
DocumentName Text[150]
EmailAddress Text[250]
AllEmailsWereSuccessful Boolean

OnAfterCopyReportSelectionToReportSelection

[IntegrationEvent(False,False)]
local procedure OnAfterCopyReportSelectionToReportSelection(ReportSelections: Record "Report Selections", var TempToReportSelections: Record "Report Selections" temporary)

Parameters

Name Type Description
ReportSelections Table Microsoft.Foundation.Reporting."Report Selections"
TempToReportSelections Table Microsoft.Foundation.Reporting."Report Selections"

See also