From 32b5663e6ef521eae56715a34cb6dce1272b1dc1 Mon Sep 17 00:00:00 2001 From: Nikola Kukrika <39086991+nikolakukrika@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:59:22 +0200 Subject: [PATCH] Page summary telemetry - fix wrong condition (#2055) #### Summary Fix wrong telemetry on the Page Summary Provider #### Work Item(s) Fixes [AB#549213](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/549213) --- .../src/PageSummaryProviderImpl.Codeunit.al | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System Application/App/Page Summary Provider/src/PageSummaryProviderImpl.Codeunit.al b/src/System Application/App/Page Summary Provider/src/PageSummaryProviderImpl.Codeunit.al index 8500044c42..54ee1e6536 100644 --- a/src/System Application/App/Page Summary Provider/src/PageSummaryProviderImpl.Codeunit.al +++ b/src/System Application/App/Page Summary Provider/src/PageSummaryProviderImpl.Codeunit.al @@ -195,7 +195,7 @@ codeunit 2717 "Page Summary Provider Impl." local procedure GetRecordFields(PageId: Integer; Bookmark: Text; var ResultJsonObject: JsonObject) begin // Get all visible and available table fields that back the controls that are visible on the page - if TryGetAvailableRecordFieldsData(PageId, Bookmark, ResultJsonObject) then + if not TryGetAvailableRecordFieldsData(PageId, Bookmark, ResultJsonObject) then Session.LogMessage('0000NFZ', StrSubstNo(GetRecordFieldsFailureTelemetryTxt, PageId), Verbosity::Error, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', PageSummaryCategoryLbl); exit; end;