Skip to main content

Notifications

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

Import & Exporting Product Categories

Posted on by Microsoft Employee

Hello all, can someone please give an Idea on how to do this:

I have created a code which I am able to import the product numbers which will be the basis of what I will retrieve from the database, For each item that I have imported, it is possibly under one to two categories. My job has no issue in importing, but it has an issue exporting because the data is being cut off due to using the ff code:

type = cells.item(row+1, 1).value().variantType();
}
while (type != COMVariantType::VT_EMPTY);

Example:
Total of 3400 Product records

For each of these 3400 Product records, it is possible that it is under 1-2 categories, which makes the product categories total when you export to:

Total of 4500 Product categories

What happens is it cuts off on 3400 when i export the excel file, because of the code above.

Is there any way/other type of code to use when doing exporting?

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,240 Super User 2024 Season 2 on at
    RE: Import & Exporting Product Categories

    Hi Charos,

    You only pasted a small piece of your coding. However, you can also consider using the Data Import Export Framework which is standard for AX 2012 R2 with CU7 and above. This has a standard option to export to and import from Excel.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans