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.
Now we will create an XMLPort object to export a list of items with certificates in XML format.
In the C/SIDE object designer, select XMLPort in the object types and click New. This opens the XMLPort Designer.
Each line in the designer represents an XML node - either an element or an element's attribute.
Insert a line in the designer to create the root element
ItemCertificates
:Node Name
Node Type
Source Type
Data Source
ItemCertificates
Element
Text
<ItemCertificates>
Text in angle brackets means default value assigned by the system. It can be left as-is, without changes...