Table 8913 Email Attachments in 26
- App
- System Application
- Namespace
- System.Email
Versions171819202122232425262728latest
Source in 26
src/System Application/App/Email/src/Email/EmailAttachmens/EmailAttachments.Table.al72 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;
/// <summary>
/// Temporary Table used to get Email Attachments related to Email Scenario
/// </summary>
table 8913 "Email Attachments"
{
Access = Public;
TableType = Temporary;
Permissions = tabledata "Email Scenario Attachments" = r;
fields
{
field(1; Id; BigInteger)
{
DataClassification = SystemMetadata;
AutoIncrement = true;
}
field(2; Scenario; Enum "Email Scenario")
{
DataClassification = SystemMetadata;
}
field(3; "Attachment Name"; Text[250])
{
DataClassification = CustomerContent;
}
field(4; "Email Attachment"; Media)
{
DataClassification = CustomerContent;
}
field(5; AttachmentDefaultStatus; Boolean)
{
DataClassification = SystemMetadata;
trigger OnValidate()
var
EmailScenarioAttachments: Record "Email Scenario Attachments";
begin
EmailScenarioAttachments.Get(Rec.Id);
EmailScenarioAttachmentsImpl.SetEmailScenarioAttachmentStatus(EmailScenarioAttachments, Rec.Id, Rec.AttachmentDefaultStatus);
end;
}
}
keys
{
key(PK; Id)
{
Clustered = true;
}
key(Scenario; Scenario, "Attachment Name")
{
}
}
fieldgroups
{
fieldgroup(DropDown; AttachmentDefaultStatus, "Attachment Name", Scenario)
{
}
}
var
EmailScenarioAttachmentsImpl: Codeunit "Email Scenario Attach Impl.";
}Fields, 5
| Id | Name | Type | Obsolete |
|---|---|---|---|
| 1 | Id | BigInteger | - |
| 2 | Scenario | Enum Email Scenario | - |
| 3 | Attachment Name | Text[250] | - |
| 4 | Email Attachment | Media | - |
| 5 | AttachmentDefaultStatus | Boolean | - |
Keys, 2
| Name | Fields | Obsolete |
|---|---|---|
| PK, clustered | Id | - |
| Scenario | Scenario, Attachment Name | - |