Add lifecycle error and privacy knowledge (#99)

* Add lifecycle error and privacy knowledge

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 95c06ad8-377d-4faa-8d07-06300b1c81ec

* Fix lifecycle privacy review findings

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a26cd6d6-ff49-433e-bc53-f645c455ebdd

* Refine lifecycle privacy retrieval

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 95c06ad8-377d-4faa-8d07-06300b1c81ec

* Make review gates explicit

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 95c06ad8-377d-4faa-8d07-06300b1c81ec

---------

Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Jesper Schulz-Wedde 2026-07-14 12:52:56 +02:00 committed by GitHub
parent 363f08f47e
commit e0ebdd35c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 459 additions and 39 deletions

View file

@ -0,0 +1,28 @@
codeunit 50309 "LogError Privacy Good"
{
procedure SendInvoice()
var
FeatureTelemetry: Codeunit "Feature Telemetry";
CustomDimensions: Dictionary of [Text, Text];
ErrorCallStack: Text;
ErrorText: Text;
begin
if TrySendInvoice() then
exit;
ErrorText := GetLastErrorText(true);
ErrorCallStack := GetLastErrorCallStack();
CustomDimensions.Add('Operation', 'SendInvoice');
FeatureTelemetry.LogError('0000FT1', 'Invoice exchange', 'Sending invoice',
ErrorText, ErrorCallStack, CustomDimensions);
end;
[TryFunction]
local procedure TrySendInvoice()
begin
Error(SendFailedErr);
end;
var
SendFailedErr: Label 'The invoice could not be sent.';
}