Codeunit "Email Scenario Mapping"

ID 8891
Namespace: System.EMail

Properties

Name Value
Access Public

Methods

FromReportSelectionUsage

Gets the document sending email scenario from report selection usage.

procedure FromReportSelectionUsage(ReportSelectionUsage: Enum "Report Selection Usage"): Enum "Email Scenario"

Parameters

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

Returns

Type Description
Enum System.Email."Email Scenario"

The email scenario corresponding to the report selection usage

Events

OnAfterFromReportSelectionUsage

Subscribe to this event to add custom mappings from report selection usage (in case the enum was extended) to email scenarios.

[IntegrationEvent(False,False)]
local procedure OnAfterFromReportSelectionUsage(ReportSelectionUsage: Enum "Report Selection Usage", var EmailScenario: Enum "Email Scenario")

Parameters

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

The input report selection usage of the FromReportSelectionUsage function.

EmailScenario Enum System.Email."Email Scenario"

The output email scenario of the FromReportSelectionUsage function.

OnOverrideEmailScenario

Subscribe to this event to override the email scenario for a specific report selection usage.

[IntegrationEvent(False,False)]
local procedure OnOverrideEmailScenario(ReportSelectionUsage: Enum "Report Selection Usage", var EmailScenario: Enum "Email Scenario", var EmailScenarioChanged: Boolean)

Parameters

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

The input report selection usage of the FromReportSelectionUsage function.

EmailScenario Enum System.Email."Email Scenario"

The output email scenario of the FromReportSelectionUsage function.

EmailScenarioChanged Boolean

Set to true if you want to change the default email set.

See also