web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

In X++ Export data to Excel sheet

(0) ShareShare
ReportReport
Posted on by 1,215

Hi guys,

I need to export data from D365FO to an excel sheet of the format as shown to below image.

TableEx.PNG

How to achieve this format in x++ please give us a Example.

Thanks  

I have the same question (0)
  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi Riyas,

    Create a data entity if it doesn't exist and export the data using data management in Excel format. Check docs.microsoft.com/.../data-import-export-job

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    What data you  want to export ? As mentioned by Vinit, can't you use data management to export data ? Are you facing any challenges in creating  data entity ?

  • Blue Wang Profile Picture
    on at

    Hi Riyas,

    Can you explain your needs? What have you tried or any specific situations?

    Is the suggested method not feasible? Data Management or Excel.

    If you only want to pass X++ code, have you tried the SysExcel* class?

    Please provide more, thanks

  • Riyas ahamed F Profile Picture
    1,215 on at

    Thanks for your replay ,

    No, i'm not used in Data Entity what i want to know in the Runbasebatch class i need it export data Excel as a Table Design above i mentioned how to achieve that process in  X++ .

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi Riyas,

    When you are exporting excel, where do you want to store it? you cant access the file system as you used to do it in AX 2012.  What is the requirement here? Who is using the data from Excel? You can use Power automate for the export of file using data management and email it/ store it in blob storage/Sharepoint etc.

    Let us know the business requirement so we can guide you better.

  • Riyas ahamed F Profile Picture
    1,215 on at

    Thanks for your valuable answer  Vinit Goyal ,

    we are using on Runbasebatch class In D365Fo and when i click Generate Template in UI it will Export data from excel sheet as a Field column so that we want as a Table design instead of normal Column.

    below our Runbasebatch,

    6215.MS.PNG

    this above image Export data bank details

    output,

    4113.bank.PNG

    so, now i want to table design in the Excel sheet how to do in my Runbasebatch class give me example.

    Thanks 

  • vinitgoyal2005 Profile Picture
    6,332 on at

    Hi Riyas,

    Can you share your existing code? If I understood correctly, you need the excel to look in a different format? Still did not understand the exact requirement. I see the above output, do you want the column names different? or the background color of header different?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans