You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-itpro/developer/devenv-extending-email.md
+58-1Lines changed: 58 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ The following diagram shows the relationship between the objects for email scena
44
44
The following code example shows how to extend the `Email Scenario` enum by adding a new scenario named **BC LE Scenario**. After you extend the enum, the new BC LE option is available in the Email Scenario field. You can assign the scenario to accounts on the **Email Scenarios** page, or by using the `EmailScenario.SetEmailAccount()` method.
procedure AddEmailToScenario(Rec: Record "Email Account")
58
66
var
59
67
EmailScenario: Codeunit "Email Scenario";
@@ -74,6 +82,10 @@ The email address book lookup is what you use to choose email accounts in [!INCL
74
82
The following code example shows how to extend the `Email Address Entity` enum by adding a **BCLE Entity** option. The BCLE entity has an email address that we want to be able to access.
Next, we'll extend the `Email Connector` enum by adding an **SMTP** option.
242
267
243
268
```al
269
+
namespace MyCompany.EmailExtension;
270
+
271
+
using System.Email;
272
+
273
+
enumextension 50200 "My Email Connectors" extends "Email Connector"
244
274
{
245
275
value(2147483647; SMTP)
246
276
{
@@ -255,8 +285,15 @@ The last step is to create a page where we can view or create an email account.
255
285
> [!TIP]
256
286
> If you want more details, there are several examples available on the [ALAppExtensions repository](https://github.com/microsoft/ALAppExtensions/tree/main/Apps/W1/Email%20-%20SMTP%20Connector/app). For example, the SMTP Connector is a good implementation to explore.
257
287
258
-
Email Importance Enum
288
+
## Email importance example
289
+
290
+
The following example shows how to extend the email capabilities by adding an importance field to email messages. This pattern extends both the `Email Outbox` and `Sent Email` tables and their corresponding pages to expose the new field.
0 commit comments