Table 8888 Email Outbox in 24
- App
- System Application
- Namespace
- System.Email
Fields, 14Keys, 5Procedures, 3
Versions171819202122232425262728latest
Source in 24
src/System Application/App/Email/src/Email/Outbox/EmailOutbox.Table.al166 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.Email;
using System.Security.AccessControl;
/// <summary>Holds information about draft emails and email that are about to be sent.</summary>
table 8888 "Email Outbox"
{
Access = Public;
Extensible = true;
Description = 'The table is public so that it can also be extensible. The table is one of the modules''s extensibility endpoints.';
fields
{
field(1; Id; BigInteger)
{
DataClassification = SystemMetadata;
AutoIncrement = true;
}
field(2; "Message Id"; Guid)
{
Access = Internal;
DataClassification = SystemMetadata;
TableRelation = "Email Message".Id;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(3; "Account Id"; Guid)
{
Access = Internal;
DataClassification = SystemMetadata;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(4; Connector; Enum "Email Connector")
{
Access = Internal;
DataClassification = SystemMetadata;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(5; "User Security Id"; Guid)
{
Access = Internal;
DataClassification = EndUserPseudonymousIdentifiers;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(6; Description; Text[2048])
{
Access = Internal;
DataClassification = CustomerContent;
Editable = false;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(8; Status; Enum "Email Status")
{
Access = Internal;
DataClassification = SystemMetadata;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(9; "Task Scheduler Id"; Guid)
{
Access = Internal;
DataClassification = SystemMetadata;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(10; Sender; Code[50])
{
Access = Internal;
FieldClass = FlowField;
CalcFormula = lookup(User."User Name" where("User Security ID" = field("User Security Id")));
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(11; "Date Queued"; DateTime)
{
Access = Internal;
DataClassification = SystemMetadata;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(12; "Date Failed"; DateTime)
{
Access = Internal;
DataClassification = SystemMetadata;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(13; "Send From"; Text[250])
{
Access = Internal;
DataClassification = EndUserIdentifiableInformation;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(14; "Error Message"; Text[2048])
{
Access = Internal;
DataClassification = CustomerContent;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
field(15; "Date Sending"; DateTime)
{
Access = Internal;
DataClassification = SystemMetadata;
Description = 'The field is marked as internal in order to prevent modifying it from code.';
}
}
keys
{
key(PK; Id)
{
Clustered = true;
}
key(MessageId; "Message Id")
{
}
key(UserSecurityId; "User Security Id")
{
}
key(Status; Status)
{
}
key(StatusMessageId; "Message Id", Status)
{
}
}
/// <summary>
/// Get the message id of the outbox email.
/// </summary>
/// <returns>Message id.</returns>
procedure GetMessageId(): Guid
begin
exit(Rec."Message Id");
end;
/// <summary>
/// Get the account id of the outbox email.
/// </summary>
/// <returns>Account id.</returns>
procedure GetAccountId(): Guid
begin
exit(Rec."Account Id");
end;
/// <summary>
/// The email connector of the outbox email.
/// </summary>
/// <returns>Email connector</returns>
procedure GetConnector(): Enum "Email Connector"
begin
exit(Rec.Connector);
end;
}Fields, 14
| Id | Name | Type | Obsolete |
|---|---|---|---|
| 1 | Id | BigInteger | - |
| 2 | Message Id | Guid | - |
| 3 | Account Id | Guid | - |
| 4 | Connector | Enum Email Connector | - |
| 5 | User Security Id | Guid | - |
| 6 | Description | Text[2048] | - |
| 8 | Status | Enum Email Status | - |
| 9 | Task Scheduler Id | Guid | - |
| 10 | Sender | Code[50] | - |
| 11 | Date Queued | DateTime | - |
| 12 | Date Failed | DateTime | - |
| 13 | Send From | Text[250] | - |
| 14 | Error Message | Text[2048] | - |
| 15 | Date Sending | DateTime | - |
Keys, 5
| Name | Fields | Obsolete |
|---|---|---|
| PK, clustered | Id | - |
| MessageId | Message Id | - |
| UserSecurityId | User Security Id | - |
| Status | Status | - |
| StatusMessageId | Message Id, Status | - |
Procedures, 3
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| GetMessageId | () | Guid | public | - |
| GetAccountId | () | Guid | public | - |
| GetConnector | () | Enum Email Connector | public | - |