Codeunit 8893 "Email Scenario"
System Application · System.Email
Across versions
- BC23present
- BC241 procedures added
- BC25-30unchanged
Neighbourhood 10 connected objects and pages
System Application · System.Email · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnBeforeInsertAvailableEmailScenario(Scenario: Enum "Email Scenario"; var IsAvailable: Boolean)(integration): Event for changing whether an email scenario should be added to the list of assignable scenarios. If the scenario has already been assigned or is the default scenario, this event won’t be published.
Procedures
GetDefaultEmailAccount(var EmailAccount: Record "Email Account"): BooleanGetEmailAccount(Scenario: Enum "Email Scenario"; var EmailAccount: Record "Email Account"): Boolean: Gets the email account used by the given email scenario. If the no account is defined for the provided scenario, the default account (if defined) will be returned.IsThereEmailAccountSetForScenario(Scenario: Enum "Email Scenario"): Boolean+ BC24: Check if there is an email account set for the given email scenario.SetDefaultEmailAccount(EmailAccount: Record "Email Account"): Sets a default email account.SetEmailAccount(Scenario: Enum "Email Scenario"; EmailAccount: Record "Email Account"): Sets an email account to be used by the given email scenario.UnassignScenario(Scenario: Enum "Email Scenario"): Unassign an email scenario. The scenario will then use the default email account.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 8892 “Email Scenario Impl.” (6 calls:
GetDefaultEmailAccount → GetEmailAccount,GetEmailAccount → GetEmailAccount,IsThereEmailAccountSetForScenario → IsThereEmailAccountSetForScenario, …)
Called by
- Codeunit 8900 “Email Impl” (3 calls:
Enqueue → GetEmailAccount,OpenInEditor → GetEmailAccount,Send → GetEmailAccount) - Codeunit 8889 “Email Account Impl.” (2 calls:
HandleDefaultAccountDeletion → UnassignScenario,MakeDefault → SetDefaultEmailAccount) - Page 9033 “Invite External Accountant” (2 calls:
OnOpenPage → GetEmailAccount,SendInvitationEmail → GetEmailAccount) - Codeunit 1034 “Job Planning Line - Calendar” (1 call:
GetOrganizer → GetEmailAccount) - Codeunit 397 “Mail” (1 call:
GetDefaultScenarioEmailAddress → GetEmailAccount) - Codeunit 8892 “Email Scenario Impl.” (1 call:
GetAvailableScenariosForAccount → OnBeforeInsertAvailableEmailScenario) - Codeunit 8906 “Email Editor” (1 call:
CreateOutbox → GetDefaultEmailAccount) - Codeunit 9520 “Mail Management” (1 call:
QualifyFromAddress → GetEmailAccount) - Page 8886 “Email Account Wizard” (1 call:
OnInit → GetDefaultEmailAccount) - Page 8887 “Email Accounts” (1 call:
UpdateEmailAccounts → GetDefaultEmailAccount)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Email Scenario"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.