If you need the ECM dropzone on a Business Central page where the drop zone is not integrated, you can develop an app with the desired integration using the application language (AL).
Here's how
-
Create a new AL project or extend an existing one. If needed, see the details on the Microsoft Learn website under Get started with AL (Business Central).
-
In the AL project, declare the edoc archivelink for Dynamics 365 BC app under dependencies in the app.json file to access the ECM drop zone. If needed, see the details on the Microsoft Learn website under JSON files (Business Central).
-
Develop the following code in the AL project for each Business Central page that you want to extend with the ECM dropzone:
pageextension MyPageExtensionID "MyPageExtensionName" extends "ExtendedPageName"
{
layout
{
addfirst(factboxes)
{
part(edocArchivelinkDropZone; "Edoc Archivelink DropZone")
{
Caption = 'ECM dropzone';
ApplicationArea = All;
Visible = EdocArchivelinkDropZoneVisible;
}
}
}
var
edocArchivelinkDropZoneVisible: Boolean;
trigger OnOpenPage()
begin
CurrPage.edocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(false));
edocArchivelinkDropZoneVisible := CurrPage.edocArchivelinkDropZone.PAGE.GetPageVisible();
end;
trigger OnAfterGetCurrRecord()
begin
CurrPage.edocArchivelinkDropZone.PAGE.SetCurrPageData(Rec, CurrPage.OBJECTID(false));
end;
}
See also