Skip to content

KVSCORETelemetryProxy#

Summary: This codeunit is a proxy for the Feature Telemetry and Telemetry codeunits. It provides getter procedures for the event ids and proxy procedures to the Feature Telemetry and Telemetry codeunits. This codeunit is used to avoid direct dependencies to the Feature Telemetry and Telemetry codeunits.

Procedures#

GetCoreRegistrationImplementationEventId() : Text#

Summary: Returns the event id of the core registration implementation event.

procedure GetCoreRegistrationImplementationEventId(): Text

Returns: KVS0001

Example:

CustomDimensions.Add('LastValid', Format(lastValid, 0, 9));
TelemetryProxy.Telemetry().LogMessage(TelemetryProxy.GetCoreRegistrationImplementationEventId(), 'FirstUserOverrunDateIsInWarningRange', Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);

GetNotificationSendEventId() : Text#

Summary: Returns the event id of the notification send event.

procedure GetNotificationSendEventId(): Text

Returns: KVS0002

Example:

Ntfctn.Id := NtfctnIdTok;
Ntfctn.Message := NtfctnMsg;
Ntfctn.Send();
CustomDimensions.Add('notificationId', Ntfctn.Id);
TelemetryProxy.Telemetry().LogMessage(TelemetryProxy.GetNotificationSendEventId(), 'Notification Send', Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);

GetNotificationActionHandlerEventId() : Text#

Summary: Returns the event id of the notification action handler event.

procedure GetNotificationActionHandlerEventId(): Text

Returns: KVS0003

Example:

procedure RunAction1(Ntfctn: Notification);
begin
    CustomDimensions.Add('notificationId', Ntfctn.Id);
    CustomDimensions.Add('actionName', 'Action1'); //Use something like procedure name
    TelemetryProxy.Telemetry().LogMessage(TelemetryProxy.GetNotificationActionHandlerEventId(), 'Notification Action Invoked', Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);
    Message('This is RunAction1');
end;

GetNotificationRecallEventId() : Text#

Summary: Returns the event id of the notification recall event.

procedure GetNotificationRecallEventId(): Text

Returns: KVS0004

Example:

Ntfctn.Recall();
CustomDimensions.Add('notificationId', Ntfctn.Id);
TelemetryProxy.Telemetry().LogMessage(TelemetryProxy.GetNotificationRecallEventId(), 'Notification Recalled', Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);

GetFeatureTelemetryEventId() : Text#

Summary: Returns the event id of the feature telemetry event.

procedure GetFeatureTelemetryEventId(): Text

Returns: KVS0005

Example:

TelemetryProxy.FeatureTelemetry().LogUsage(TelemetryProxy.GetFeatureTelemetryEventId(),TelemetryFeatureNames.ConnectionTest(),'Results exported');

FeatureTelemetry() : Codeunit#

Summary: Returns an Instance of the Feature Telemetry codeunit.

procedure FeatureTelemetry(): Codeunit

Example: Use this procedure to log a feature telemetry event.

TelemetryProxy.FeatureTelemetry().LogUsage(TelemetryProxy.GetFeatureTelemetryEventId(),TelemetryFeatureNames.ConnectionTest(),'Results exported');

Telemetry() : Codeunit#

Summary: Returns an Instance of the Telemetry codeunit.

procedure Telemetry(): Codeunit

Example:

CustomDimensions.Add('LastValid', Format(lastValid, 0, 9));
TelemetryProxy.Telemetry().LogMessage(TelemetryProxy.GetCoreRegistrationImplementationEventId(), 'FirstUserOverrunDateIsInWarningRange', Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, CustomDimensions);