mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-07 01:46:53 +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
This commit is contained in:
parent
9214f73819
commit
0c2a0ceb82
25 changed files with 457 additions and 37 deletions
|
|
@ -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.';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue