Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissionset 9453 "File Storage - Edit"
{
Access = Public;
Assignable = false;
Caption = 'File Storage - Edit';
Caption = 'External File Storage - Edit';

IncludedPermissionSets = "File Storage - Read";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ permissionset 9452 "File Storage - Objects"
{
Access = Internal;
Assignable = false;
Caption = 'External File Storage - Objects';

Permissions =
codeunit "File Account" = X,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissionset 9451 "File Storage - Read"
{
Access = Internal;
Assignable = false;
Caption = 'External File Storage - Read';
IncludedPermissionSets = "File Storage - Objects";

Permissions =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ table 9450 "File Account"
{
Extensible = false;
TableType = Temporary;
Caption = 'External File Account';

fields
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ page 9451 "File Account Wizard"
PageType = NavigatePage;
ApplicationArea = All;
UsageCategory = Administration;
Caption = 'Set Up File Accounts';
Caption = 'Set Up External File Accounts';
SourceTable = "Ext. File Storage Connector";
SourceTableTemporary = true;
InsertAllowed = false;
Expand Down Expand Up @@ -309,13 +309,15 @@ page 9451 "File Account Wizard"

trigger OnQueryClosePage(CloseAction: Action): Boolean
var
FeatureTelemetry: Codeunit "Feature Telemetry";
DurationAsInt: Integer;
begin
DurationAsInt := CurrentDateTime() - StartTime;
if Step = Step::Done then
Session.LogMessage('0000CTK', StrSubstNo(AccountCreationSuccessfullyCompletedDurationLbl, DurationAsInt), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', FileCategoryLbl)
else
Session.LogMessage('0000CTL', StrSubstNo(AccountCreationFailureDurationLbl, DurationAsInt), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', FileCategoryLbl);
if Step = Step::Done then begin
Session.LogMessage('0000OPM', StrSubstNo(AccountCreationSuccessfullyCompletedDurationLbl, DurationAsInt), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', FileCategoryLbl);
FeatureTelemetry.LogUptake('0000OPI', 'External File Storage', Enum::"Feature Uptake Status"::"Set up");
end else
Session.LogMessage('0000OPN', StrSubstNo(AccountCreationFailureDurationLbl, DurationAsInt), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', FileCategoryLbl);
end;

trigger OnInit()
Expand Down Expand Up @@ -391,11 +393,11 @@ page 9451 "File Account Wizard"
CustomDimensions.Add('Category', FileCategoryLbl);

if AccountWasRegistered then begin
FeatureTelemetry.LogUptake('0000CTF', 'File Access', Enum::"Feature Uptake Status"::"Set up");
Telemetry.LogMessage('0000CTH', StrSubstNo(TelemetryAccountRegisteredLbl, Rec.Connector), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);
FeatureTelemetry.LogUptake('0000OPJ', 'File Access', Enum::"Feature Uptake Status"::"Set up");
Telemetry.LogMessage('0000OPK', StrSubstNo(TelemetryAccountRegisteredLbl, Rec.Connector), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);
NextStep(false);
end else begin
Telemetry.LogMessage('0000CTI', StrSubstNo(TelemetryAccountFailedtoRegisterLbl, Rec.Connector, GetLastErrorCallStack()), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);
Telemetry.LogMessage('0000OPL', StrSubstNo(TelemetryAccountFailedtoRegisterLbl, Rec.Connector, GetLastErrorCallStack()), Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);
NextStep(true);
end;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using System.Telemetry;
page 9450 "File Accounts"
{
PageType = List;
Caption = 'File Accounts';
Caption = 'External File Accounts';
ApplicationArea = All;
UsageCategory = Administration;
SourceTable = "File Account";
Expand Down Expand Up @@ -216,7 +216,7 @@ page 9450 "File Accounts"
var
FeatureTelemetry: Codeunit "Feature Telemetry";
begin
FeatureTelemetry.LogUptake('0000CTA', 'External File Storage', Enum::"Feature Uptake Status"::Discovered);
FeatureTelemetry.LogUptake('0000OPH', 'External File Storage', Enum::"Feature Uptake Status"::Discovered);
CanUserManageFileSetup := FileAccountImpl.IsUserFileAdmin();
Rec.SetCurrentKey("Account Id", Connector);
UpdateFileAccounts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ codeunit 9454 "External File Storage"
ExternalFileStorageImpl: Codeunit "External File Storage Impl.";

/// <summary>
/// Initialized the File Storage for the given scenario.
/// Initializes the File Storage for the given scenario.
/// </summary>
/// <param name="Scenario">File Scenario to use.</param>
procedure Initialize(Scenario: Enum "File Scenario")
Expand All @@ -20,7 +20,7 @@ codeunit 9454 "External File Storage"
end;

/// <summary>
/// Initialized the File Storage for the give file account.
/// Initializes the File Storage for the give file account.
/// </summary>
/// <param name="TempFileAccount"> File Account to use.</param>
procedure Initialize(TempFileAccount: Record "File Account" temporary)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

namespace System.ExternalFileStorage;

using System.Telemetry;

codeunit 9455 "External File Storage Impl."
{
Access = Internal;
Expand All @@ -19,13 +21,16 @@ codeunit 9455 "External File Storage Impl."
procedure Initialize(Scenario: Enum "File Scenario")
var
TempFileAccount: Record "File Account" temporary;
FeatureTelemetry: Codeunit "Feature Telemetry";
FileScenarioMgt: Codeunit "File Scenario";
NoFileAccountFoundErr: Label 'No default file account defined.';
begin
if not FileScenarioMgt.GetFileAccount(Scenario, TempFileAccount) then
Error(NoFileAccountFoundErr);

Initialize(TempFileAccount);

FeatureTelemetry.LogUptake('0000OPO', 'External File Storage', Enum::"Feature Uptake Status"::Used);
end;

procedure Initialize(TempFileAccount: Record "File Account" temporary)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace System.ExternalFileStorage;

page 9455 "Storage Browser"
{
Caption = 'Storage Browser';
Caption = 'External Storage Browser';
PageType = List;
ApplicationArea = All;
SourceTable = "File Account Content";
Expand Down
Loading