Options

How to export XMLPort to CSV using codeunit in NAV 2009 R2

Hi Guys,

May I know how to export XMLPort to CSV using codeunit in NAV 2009 R2?

Thank you.

Answers

  • Options
    AlexeyShaminAlexeyShamin Member Posts: 80
    hello!
    1. Create XML Port for CSV
    2. Example call XMLPort from Codeunit and save Result to File:

    OutputFile.CREATE(FileName);
    OutputFile.CREATEOUTSTREAM(OutputStream);

    MyXMLPort.SETDESTINATION(OutputStream);
    MyXMLPort.EXPORT;
Sign In or Register to comment.