Options

How to export the data of a single client to xml

rpardorpardo Member Posts: 1
Hi guys, I'm new to the world of dynamics nav and I want to export the data of a single client in xml. I am studying with the 2015 version.

Looking at the documentation there is an example code to export the clients to an xml file, but it exports all the clients.

CustXmlFile.CREATE(TEMPORARYPATH + 'Customer.xml');
CustXmlFile.CREATEOUTSTREAM(XmlStream);
IsExported := XMLPORT.EXPORT(XMLPORT::CustomerXMLport, XmlStream);
FromFile := CustXmlFile.NAME;
ToFile := 'CustomerClient.xml';
CustXmlFile.CLOSE;
IF IsExported THEN
BEGIN
DOWNLOAD(FromFile,'Download file','C:\Temp','Xml file(*.xml)|*.xml',ToFile);
ERASE(FromFile);
MESSAGE(Text000);
END
ELSE
MESSAGE(Text001);

How should I export a specific client in which part of the code will I indicate the client that I want to export?

Thank you very much for your help :)
Sign In or Register to comment.