mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
* 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>
25 lines
768 B
AL
25 lines
768 B
AL
codeunit 50310 "LogError Privacy Bad"
|
|
{
|
|
procedure SendInvoice()
|
|
var
|
|
FeatureTelemetry: Codeunit "Feature Telemetry";
|
|
CustomDimensions: Dictionary of [Text, Text];
|
|
ErrorCallStack: Text;
|
|
ErrorText: Text;
|
|
begin
|
|
if TrySendInvoice() then
|
|
exit;
|
|
|
|
ErrorText := GetLastErrorText();
|
|
ErrorCallStack := GetLastErrorCallStack();
|
|
CustomDimensions.Add('Operation', 'SendInvoice');
|
|
FeatureTelemetry.LogError('0000FT2', 'Invoice exchange', 'Sending invoice',
|
|
ErrorText, ErrorCallStack, CustomDimensions);
|
|
end;
|
|
|
|
[TryFunction]
|
|
local procedure TrySendInvoice()
|
|
begin
|
|
Error('Invoice %1 for %2 could not be sent.', 'INV-1001', 'user@example.com');
|
|
end;
|
|
}
|