Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Using excel services in D365

(1) ShareShare
ReportReport
Posted on by 33
Hi everyone,
I'm new member .
I'm coding function for import data from excel but that throw exception "The name 'SysExcelApplication' does not denote a class, a table, or an extended data type."
This is my code and these red words is same exception above. 
private void importExelInternalDeliveryPrice()
{
    SysExcelApplication                 application;
    SysExcelWorkbooks                   workbooks;
    SysExcelWorkbook                    workbook;
    SysExcelWorksheets                  worksheets;
    SysExcelWorksheet                   worksheet;
    SysExcelCells                       cells;
    ....
}
I try update model to Application Platform package , but that not effect.
I'm using office 2016 , so i had tried add reference Microsoft.Office.Interop.Excel.dll but that is not OK.
Please help me.
Thanks a lot.
  • David Danh Profile Picture
    David Danh 33 on at
    Using excel services in D365
    Thank you very much.
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,605 Most Valuable Professional on at
    Using excel services in D365
    Your approach worked in AX, but you need to do it differently in F&O. Utilize EPPlus library; OfficeOpenXml.ExcelPackage is the main class there. You can find examples on Internet, e.g. Import records from Excel using X++ code in D365FO.
     
    (Moved from Dynamics AX forum.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans