Codeunit "Server Config. Setting Handler" - method GetIsSaasExcelAddinEnabled currently not implemented in the AL version.
Hi. I wanted to use the function "export to Excel" as we can see in the Payment Journal, but I received: codeunit "Server Config. Setting Handler" - method GetIsSaasExcelAddinEnabled currently not implemented in the AL version. Same issue with "method" ExcelBuf.CreateBookAndOpenExcel. It is good to have this possibility when we develop Extension.
P.S. How can use functionality in current AL-solution?
Thank you for your request. Procedure GetIsSaasExcelAddinEnabled will be external in the next release.
Regarding CreateBookAndOpenExcel. This procedure calls CreateBook with a file path as a parameter, which is considered unsafe if running in a cloud. Our suggested solution is to use CreateNewBook instead (which creates temp file). So you will have procedure
CreateNewBookAndOpenExcel(SheetName : Text[250];ReportHeader : Text;CompanyName2 : Text;UserID2 : Text)
CreateNewBook(SheetName);
WriteSheet(ReportHeader,CompanyName2,UserID2);
CloseBook;
OpenExcel;