O'Reilly logo

Extending Microsoft Dynamics NAV 2016 Cookbook by Alexander Drogin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exchanging data with XMLPort objects

XMLPort is a C/SIDE object used to exchange data with external applications in XML format or as plain text in CSV format. XMLPorts are easily configurable and allow us to execute more intricate logic in C/AL trigger. All these advantages make them a very handy tool when it comes to exporting reports in XML format or importing data from external sources.

How to do it...

Now we will create an XMLPort object to export a list of items with certificates in XML format.

  1. In the C/SIDE object designer, select XMLPort in the object types and click New. This opens the XMLPort Designer.
  2. Each line in the designer represents an XML node - either an element or an element's attribute.
  3. Insert a line in the designer to create the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required