Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 2.08 KB

dialog-loginternalerror-string-string-dataclassification-verbosity-method.md

File metadata and controls

50 lines (41 loc) · 2.08 KB
title description ms.author ms.date ms.topic author ms.reviewer
Dialog.LogInternalError(Text, Text, DataClassification, Verbosity) Method
Log internal errors for telemetry.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

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.

See Also

Dialog Data Type
Get Started with AL
Developing Extensions