AL icon indicating copy to clipboard operation
AL copied to clipboard

Excel import in Business Central

Open naveksa opened this issue 8 years ago • 2 comments

Trying to create an Excel import function to our Extensions. Previously we used the function: ExcelBuf.OpenBook(ServerFileName,SheetName);

That function is still used by MS in NAV standard. However in the Cloud Sandbox that function is not allowed. Error: "The type or method 'OpenBook' cannot be used for 'Extension' development."

What to do ?

  • AL Extension Version: 0.16.19969

  • Server Version: BusinessCentral Cloud Sandbox

naveksa avatar Sep 19 '18 13:09 naveksa

I don't know if in your BC version the function is external but in the RC3 version you can use:

  OpenBookStream

Regards.

ftornero9 avatar Sep 21 '18 11:09 ftornero9

Thanks, I will try that solution. K.R.

naveksa avatar Sep 21 '18 12:09 naveksa