XML port

I have put a validation in XML port in Nav2013. In the case, if error message displays, then i want to pass any numberic code in the following string in faultcode—

faultcode xmlns:a=“urn:microsoft-dynamics-schemas/error”>a:Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLDialogException”

validation–

if() then

error();

Hi Nitin,

You cannot do this with XMLPorts in NAV 2013.

The only way to archive this from NAV is to build the entire XML file using a codeunit and the Microsoft XML API.