Codeunit "Document-Mailing"
ID 260
Namespace: System.EMail
Properties
Methods
EmailFile
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text |
|
|
EmailSubject
|
Text |
|
|
ToEmailAddress
|
Text |
|
|
HideDialog
|
Boolean |
|
|
EmailScenario
|
Enum System.Email."Email Scenario" |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"): Boolean
Parameters
Returns
EmailFile
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBody
|
Codeunit System.Utilities."Temp Blob" |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
Returns
EmailFile
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceReference: RecordRef): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text |
|
|
EmailSubject
|
Text |
|
|
ToEmailAddress
|
Text |
|
|
HideDialog
|
Boolean |
|
|
EmailScenario
|
Enum System.Email."Email Scenario" |
|
|
SourceReference
|
RecordRef |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceReference: RecordRef): Boolean
Parameters
Returns
EmailFile
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text |
|
|
EmailSubject
|
Text |
|
|
ToEmailAddress
|
Text |
|
|
HideDialog
|
Boolean |
|
|
EmailScenario
|
Enum System.Email."Email Scenario" |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
Returns
EmailFile
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceReference
|
RecordRef |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBody
|
Codeunit System.Utilities."Temp Blob" |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceReference
|
RecordRef |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyInstream: InStream; EmailSubject: Text; ToEmailAddress: Text; HideDialog: Boolean; EmailScenario: Enum "Email Scenario"; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyInstream
|
InStream |
|
|
EmailSubject
|
Text |
|
|
ToEmailAddress
|
Text |
|
|
HideDialog
|
Boolean |
|
|
EmailScenario
|
Enum System.Email."Email Scenario" |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
EmailFile
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFile that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; var EmailBody: Codeunit "Temp Blob"; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
EmailBody
|
Codeunit System.Utilities."Temp Blob" |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBody
|
Codeunit System.Utilities."Temp Blob" |
|
|
EmailSubject
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
EmailFile
procedure EmailFile(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyInstream: InStream; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyInstream
|
InStream |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
EmailFileWithSubjectAndReportUsage
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFileWithSubjectAndReportUsage that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFileWithSubjectAndReportUsage that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text[250] |
|
|
EmailSubject
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
Returns
EmailFileWithSubjectAndReportUsage
procedure EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBody
|
Codeunit System.Utilities."Temp Blob" |
|
|
EmailSubject
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
Returns
EmailFileWithSubjectAndReportUsage
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFileWithSubjectAndReportUsage that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFileWithSubjectAndReportUsage that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text[250] |
|
|
EmailSubject
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceReference
|
RecordRef |
|
Returns
EmailFileWithSubjectAndReportUsage
procedure EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceReference: RecordRef): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBody
|
Codeunit System.Utilities."Temp Blob" |
|
|
EmailSubject
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceReference
|
RecordRef |
|
Returns
EmailFileWithSubjectAndReportUsage
Obsolete
This element will become obsolete from version 27.0. Use procedure EmailFileWithSubjectAndReportUsage that accepts a "Temp Blob" for the html body instead.
[Obsolete(Use procedure EmailFileWithSubjectAndReportUsage that accepts a "Temp Blob" for the html body instead.,27.0)]
procedure EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; HtmlBodyFilePath: Text[250]; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBodyFilePath
|
Text[250] |
|
|
EmailSubject
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
EmailFileWithSubjectAndReportUsage
procedure EmailFileWithSubjectAndReportUsage(AttachmentStream: InStream; AttachmentName: Text; var HtmlBody: Codeunit "Temp Blob"; EmailSubject: Text[250]; PostedDocNo: Code[20]; ToEmailAddress: Text[250]; EmailDocName: Text[250]; HideDialog: Boolean; ReportUsage: Integer; SourceTables: List of [Integer]; SourceIDs: List of [Guid]; SourceRelationTypes: List of [Integer]): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
HtmlBody
|
Codeunit System.Utilities."Temp Blob" |
|
|
EmailSubject
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
ToEmailAddress
|
Text[250] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
SourceTables
|
List of [Integer] |
|
|
SourceIDs
|
List of [Guid] |
|
|
SourceRelationTypes
|
List of [Integer] |
|
Returns
GetToAddressFromCustomer
procedure GetToAddressFromCustomer(BillToCustomerNo: Code[20]): Text[250]
Parameters
| Name |
Type |
Description |
|
BillToCustomerNo
|
Code[20] |
|
Returns
| Type |
Description |
|
Text[250] |
|
GetToAddressFromVendor
procedure GetToAddressFromVendor(BuyFromVendorNo: Code[20]): Text[250]
Parameters
| Name |
Type |
Description |
|
BuyFromVendorNo
|
Code[20] |
|
Returns
| Type |
Description |
|
Text[250] |
|
GetAttachmentFileName
procedure GetAttachmentFileName(var AttachmentFileName: Text[250]; PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer)
Parameters
| Name |
Type |
Description |
|
AttachmentFileName
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
EmailDocumentName
|
Text[250] |
|
|
ReportUsage
|
Integer |
|
GetEmailBody
procedure GetEmailBody(PostedDocNo: Code[20]; ReportUsage: Integer; CustomerNo: Code[20]): Text
Parameters
| Name |
Type |
Description |
|
PostedDocNo
|
Code[20] |
|
|
ReportUsage
|
Integer |
|
|
CustomerNo
|
Code[20] |
|
Returns
ReplaceCustomerNameWithPlaceholder
procedure ReplaceCustomerNameWithPlaceholder(CustomerNo: Code[20]; BodyText: Text): Text
Parameters
| Name |
Type |
Description |
|
CustomerNo
|
Code[20] |
|
|
BodyText
|
Text |
|
Returns
GetEmailSubject
procedure GetEmailSubject(PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer): Text[250]
Parameters
| Name |
Type |
Description |
|
PostedDocNo
|
Code[20] |
|
|
EmailDocumentName
|
Text[250] |
|
|
ReportUsage
|
Integer |
|
Returns
| Type |
Description |
|
Text[250] |
|
EmailFileFromStream
procedure EmailFileFromStream(AttachmentStream: InStream; AttachmentName: Text; Body: Text; Subject: Text; MailTo: Text; HideDialog: Boolean; ReportUsage: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
Body
|
Text |
|
|
Subject
|
Text |
|
|
MailTo
|
Text |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
Returns
EmailHtmlFromStream
procedure EmailHtmlFromStream(MailInStream: InStream; ToEmailAddress: Text[250]; Subject: Text; HideDialog: Boolean; ReportUsage: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
MailInStream
|
InStream |
|
|
ToEmailAddress
|
Text[250] |
|
|
Subject
|
Text |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
Returns
EmailFileAndHtmlFromStream
procedure EmailFileAndHtmlFromStream(AttachmentStream: InStream; AttachmentName: Text; MailInStream: InStream; ToEmailAddress: Text[250]; Subject: Text; HideDialog: Boolean; ReportUsage: Integer): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
MailInStream
|
InStream |
|
|
ToEmailAddress
|
Text[250] |
|
|
Subject
|
Text |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
Returns
EmailFileAndHtmlFromStream
procedure EmailFileAndHtmlFromStream(AttachmentStream: InStream; AttachmentName: Text; MailInStream: InStream; ToEmailAddress: Text[250]; Subject: Text; HideDialog: Boolean; ReportUsage: Integer; PostedDocNo: Code[20]; IsFromPostedDoc: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
AttachmentStream
|
InStream |
|
|
AttachmentName
|
Text |
|
|
MailInStream
|
InStream |
|
|
ToEmailAddress
|
Text[250] |
|
|
Subject
|
Text |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
PostedDocNo
|
Code[20] |
|
|
IsFromPostedDoc
|
Boolean |
|
Returns
Events
OnBeforeSendEmail
[IntegrationEvent(False,False)]
local procedure OnBeforeSendEmail(var TempEmailItem: Record "Email Item" temporary; var IsFromPostedDoc: Boolean; var PostedDocNo: Code[20]; var HideDialog: Boolean; var ReportUsage: Integer; var EmailSentSuccesfully: Boolean; var IsHandled: Boolean; EmailDocName: Text[250]; SenderUserID: Code[50]; EmailScenario: Enum "Email Scenario")
Parameters
OnAfterEmailSentSuccesfully
[IntegrationEvent(False,False)]
local procedure OnAfterEmailSentSuccesfully(var TempEmailItem: Record "Email Item" temporary; PostedDocNo: Code[20]; ReportUsage: Integer)
Parameters
OnAfterEmailSent
[IntegrationEvent(False,False)]
local procedure OnAfterEmailSent(var TempEmailItem: Record "Email Item" temporary; PostedDocNo: Code[20]; ReportUsage: Integer; EmailSentSuccesfully: Boolean)
Parameters
OnBeforeEmailFileInternal
Obsolete
This element will become obsolete from version 27.0. Use new Event OnBeforeEmailItemPreparation instead.
[Obsolete(Use new Event OnBeforeEmailItemPreparation instead.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeEmailFileInternal(var TempEmailItem: Record "Email Item" temporary; var HtmlBodyFilePath: Text[250]; var EmailSubject: Text[250]; var ToEmailAddress: Text[250]; var PostedDocNo: Code[20]; var EmailDocName: Text[250]; var HideDialog: Boolean; var ReportUsage: Integer; var IsFromPostedDoc: Boolean; var SenderUserID: Code[50]; var EmailScenario: Enum "Email Scenario"; var EmailSentSuccessfully: Boolean; var IsHandled: Boolean)
Parameters
| Name |
Type |
Description |
|
TempEmailItem
|
Table System.EMail."Email Item" |
|
|
HtmlBodyFilePath
|
Text[250] |
|
|
EmailSubject
|
Text[250] |
|
|
ToEmailAddress
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
EmailDocName
|
Text[250] |
|
|
HideDialog
|
Boolean |
|
|
ReportUsage
|
Integer |
|
|
IsFromPostedDoc
|
Boolean |
|
|
SenderUserID
|
Code[50] |
|
|
EmailScenario
|
Enum System.Email."Email Scenario" |
|
|
EmailSentSuccessfully
|
Boolean |
|
|
IsHandled
|
Boolean |
|
OnBeforeEmailItemPreparation
[IntegrationEvent(False,False)]
local procedure OnBeforeEmailItemPreparation(var TempEmailItem: Record "Email Item" temporary; var HtmlBody: Codeunit "Temp Blob"; var EmailSubject: Text[250]; var ToEmailAddress: Text[250]; var PostedDocNo: Code[20]; var EmailDocName: Text[250]; var HideDialog: Boolean; var ReportUsage: Integer; var IsFromPostedDoc: Boolean; var SenderUserID: Code[50]; var EmailScenario: Enum "Email Scenario"; var EmailSentSuccessfully: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeEmailFile
[IntegrationEvent(False,False)]
local procedure OnBeforeEmailFile(var HideDialog: Boolean)
Parameters
| Name |
Type |
Description |
|
HideDialog
|
Boolean |
|
OnBeforeGetAttachmentFileName
[IntegrationEvent(False,False)]
local procedure OnBeforeGetAttachmentFileName(var AttachmentFileName: Text[250]; PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer)
Parameters
| Name |
Type |
Description |
|
AttachmentFileName
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
EmailDocumentName
|
Text[250] |
|
|
ReportUsage
|
Integer |
|
OnBeforeGetEmailSubject
[IntegrationEvent(False,False)]
local procedure OnBeforeGetEmailSubject(PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer; var EmailSubject: Text[250]; var IsHandled: Boolean)
Parameters
| Name |
Type |
Description |
|
PostedDocNo
|
Code[20] |
|
|
EmailDocumentName
|
Text[250] |
|
|
ReportUsage
|
Integer |
|
|
EmailSubject
|
Text[250] |
|
|
IsHandled
|
Boolean |
|
OnBeforeGetToAddressFromCustomer
[IntegrationEvent(False,False)]
local procedure OnBeforeGetToAddressFromCustomer(BillToCustomerNo: Code[20]; var ToAddress: Text[250]; var IsHandled: Boolean)
Parameters
| Name |
Type |
Description |
|
BillToCustomerNo
|
Code[20] |
|
|
ToAddress
|
Text[250] |
|
|
IsHandled
|
Boolean |
|
OnBeforeGetToAddressFromVendor
[IntegrationEvent(False,False)]
local procedure OnBeforeGetToAddressFromVendor(BuyFromVendorNo: Code[20]; var ToAddress: Text[250]; var IsHandled: Boolean)
Parameters
| Name |
Type |
Description |
|
BuyFromVendorNo
|
Code[20] |
|
|
ToAddress
|
Text[250] |
|
|
IsHandled
|
Boolean |
|
OnAfterGetEmailSubject
[IntegrationEvent(False,False)]
local procedure OnAfterGetEmailSubject(PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer; var EmailSubject: Text[250])
Parameters
| Name |
Type |
Description |
|
PostedDocNo
|
Code[20] |
|
|
EmailDocumentName
|
Text[250] |
|
|
ReportUsage
|
Integer |
|
|
EmailSubject
|
Text[250] |
|
OnAfterGetAttachmentFileName
[IntegrationEvent(False,False)]
local procedure OnAfterGetAttachmentFileName(var AttachmentFileName: Text[250]; PostedDocNo: Code[20]; EmailDocumentName: Text[250]; ReportUsage: Integer)
Parameters
| Name |
Type |
Description |
|
AttachmentFileName
|
Text[250] |
|
|
PostedDocNo
|
Code[20] |
|
|
EmailDocumentName
|
Text[250] |
|
|
ReportUsage
|
Integer |
|
See also