Import Product Master by code in AX2012

Hi All,

Do anyone have code for importing Product master data into Released product from excel. i tried to upload by excel add-in but without success. If any one could share the code it will be grateful.

Thanks,

Ansar.