NAV 2009: Export a list of contacts to XML instead of Excel or Winword

Hi all,

you may export a list of contacts, i.e. contained in a segment, to Excel.
I’d rather like to export the contacts to an XML file instead.

Is there a way to do this?

Thanks
Sasch

Hi,

Yes, you must use an XML Port for this.

Hello,

thanks for the information. I have found a number of XML ports using the classic client. One of them is the Export Contact. How do I use it from RTC to export a contact?

Thanks

Sascha

you need create a Codeunit with code like

XML.CREATEOUTSTREAM(outstr);
POXMLPort.SETDESTINATION(outstr);
POXMLPort.EXPORT;

and run the codeunit in RTC

I’m going to try it.

Thanks