Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
Open
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
2 changes: 1 addition & 1 deletion businessCentral/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publisher": "The bc2adls team, Microsoft Denmark",
"brief": "Sync data from Business Central to the Azure storage",
"description": "Exports data in chosen tables to the Azure Data Lake and keeps it in sync by incremental updates. Before you use this tool, please read the SUPPORT.md file at https://github.com/microsoft/bc2adls.",
"version": "1.3.15.0",
"version": "1.3.16.0",
"privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "https://go.microsoft.com/fwlink/?LinkId=724011",
Expand Down
16 changes: 16 additions & 0 deletions businessCentral/src/ADLSETable.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,20 @@ table 82561 "ADLSE Table"
Verbosity::Warning, CustomDimensions);
end;
end;

procedure AddAllFields()
var
ADLSEFields: Record "ADLSE Field";
begin
ADLSEFields.InsertForTable(Rec);
ADLSEFields.SetRange("Table ID", Rec."Table ID");
if ADLSEFields.FindSet() then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting the parameter to true on if ADLSEFields.FindSet(true) then would increase performance.

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-findset-boolean-method#parameters

repeat
if (ADLSEFields.CanFieldBeEnabled()) then begin
ADLSEFields.Enabled := true;
ADLSEFields.Modify();
end;
until ADLSEFields.Next() = 0;
end;

}
7 changes: 7 additions & 0 deletions businessCentral/src/ADLSETableAPI.Page.al
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ page 82565 "ADLSE Table API"
SetActionResponse(ActionContext, Rec.SystemId);
end;

[ServiceEnabled]
procedure AddAllFields(var ActionContext: WebServiceActionContext)
begin
rec.AddAllFields();
SetActionResponse(ActionContext, Rec.SystemId);
end;

local procedure SetActionResponse(var ActionContext: WebServiceActionContext; AdlsId: Guid)
var
begin
Expand Down