How to use Custom Report Layout in Extension Development

KlappspatenKlappspaten Member Posts: 22
Hi,

we are currently preparing our solution in Micorosoft Dynamics NAV 2018 for a BC 14 AL convertion.
One problem we are facing is our usage of the ImportLayout, ExportLayout, UpdateLayout and CopyRecord methods from table Custom Report Layout.
These methods are not supported in extension development.
action(ImportLayout)
            {
                Caption = 'Import Layout';
                Image = Import;
                Promoted = true;
                PromotedCategory = Process;

                trigger OnAction()
                begin
                    Rec.ImportLayout('');
                end;
            }

VS Code gives the following error message:
The type or method 'ImportLayout' cannot be used for 'Extension' development.AL(AL0296)

I hoped that I can use the method ImportLayoutBlob, but it's also unsupported.

Do you already have any experience in using this functionality?

Changing the target to Internal or OnPrem is not an option.

Thank you in advance.
Sign In or Register to comment.