If you need the edoc archivelink processes view on a Business Central page where the view is not integrated, you can develop an app with the wanted integration using 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 view. 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 view:
pageextension MyPageExtensionID "MyPageExtensionName" extends "ExtendedPageName"
{
layout
{
addfirst(factboxes)
{
part(edocArchivelinkAttachedDocuments; "Edoc ArchivelinkAt.Doc.FactBox")
{
ApplicationArea = all;
Visible = EdocArchivelinkAttachedDocumentsVisible;
}
}
}
var
EdocArchivelinkAttachedDocumentsVisible: Boolean;
trigger OnOpenPage()
begin
EdocArchivelinkAttachedDocumentsVisible := CurrPage.edocArchivelinkAttachedDocuments.Page.GetPageVisible();
end;
trigger OnAfterGetCurrRecord()
begin
CurrPage.edocArchivelinkAttachedDocuments.PAGE.SetRecData(Rec);
end;
}
See also