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 or extend an existing AL project. If required, you can find details on the Microsoft Learn website at https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started.
-
In the AL project, declare the edoc archivelink for Dynamics 365 BC app in the app.json file under dependencies to access the ECM dropzone. Details can be found on the Microsoft Learn website at https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files if required.
-
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