Enable D365Exception - FH-Inway/d365fo.tools GitHub Wiki
Enable exceptions to be thrown
Enable-D365Exception [<CommonParameters>]
Change the default exception behavior of the module to support throwing exceptions
Useful when the module is used in an automated fashion, like inside Azure DevOps pipelines and large PowerShell scripts
Enable-D365Exception
This will for the rest of the current PowerShell session make sure that exceptions will be thrown.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Exception, Exceptions, Warning, Warnings
Author: Mötz Jensen (@Splaxi)