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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX2012 Excel Export/Import thru Batch

(0) ShareShare
ReportReport
Posted on by

Hi,

 There is a requirement to Export/Import the AX 2012 table records thru batch process. I tried using the standard SysExcelApplication class but not successful. 

But one option to create the custom dll file and use in batch class.

I think there should be an alternate way to achieve this, if you know please share it.

 

Thanks,

KAS.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    You are right, SysExcel does not work work in batch. If you have csv files, you can use TextIo class, otherwise you probably have to use .NET

  • Suggested answer
    Chris Haley Profile Picture
    Microsoft Employee on at

    This sounds like a job for the AIF!

    technet.microsoft.com/.../bb496530.aspx

    You could also consider using the DIXF (Data import/export framework) if this is more of a system administration or data migration task.

    technet.microsoft.com/.../jj225591.aspx

  • Suggested answer
    Martin Dráb Profile Picture
    239,680 Most Valuable Professional on at

    The usual answer - use Data import/export framework.

  • 5400 Profile Picture
    7,162 on at

    what records you want to import or exprot with AX 2012.

  • Community Member Profile Picture
    on at

    If i use the Data import/export framework it requires the user interaction to perform the action.. right?

  • Community Member Profile Picture
    on at

    Bhaskar

    1. Actually user enters the information in Excel sheet (xls) and place it on shared folder, and AX batch should read the excel file and create the record in AX2012 table (custom table).

    2. Same table records should be exported as Excel (xls) file thru batch.

  • Suggested answer
    5400 Profile Picture
    7,162 on at

    Yes, you can achieve through DIXF, simply you have to create directory setup and trigger the batch with recurrence, it will read the directory file automatically and push the data in AX. For export, you can trigger one batch for export to file.

    Thanks

    Bhaskar

  • Suggested answer
    PA-22040759-0 Profile Picture
    6,194 on at

    You could try this approach: domhk.blogspot.com/.../dynamics-ax-2012-use-openxmlsdk-for.html

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans