Dialog.LogInternalError(Text, Text, DataClassification, Verbosity) Method
Version: Available or changed with runtime version 6.0 until version 13.0 where it was deprecated for the following reason: "Consider using 'Session.LogMessage' instead."
Log internal errors for telemetry.
Note
This method is supported only in Business Central on-premises.
Syntax
Dialog.LogInternalError(Message: Text, SubstitutionString: Text, DataClassificationInstance: DataClassification, VerbosityInstance: Verbosity)
Note
This method can be invoked without specifying the data type name.
Parameters
Message
Type: Text
This string contains the text of the error message you want to log into telemetry. Use a percent sign (%) to insert a variable value into the string. Place the percent where you want the system to substitute the variable value. You may only insert one variable value. It is not what the user will get, they will only get a generic error message.
SubstitutionString
Type: Text
This string replaces a percent sign in the "Message" Parameter.
DataClassificationInstance
Type: DataClassification
Sets the classification of the data in the error message.
VerbosityInstance
Type: Verbosity
Represents the security level of events.