how to import Main account using code in AX 2012 R2?

Hi all,

I want to import main accounts using code in AX 2012 R2.

If any one is having idea about this then please share.

Thanks in advance.

Are you interested in using code for one-time import of main accounts? or ongoing. I would suggest using Excel import or DIEF…or even MS Rapid Start (even though that can be wonky at times).