This article applies to SmartConnect, the system that it attaches to is not really important (but I happen to be doing an integration from a SQL table into Dynamics 365 Business Central
The task today was to aggregate errors in the integration and report them via email at the end. So... we'll need a global variable