bcquality/microsoft/knowledge/privacy/getlasterrortext-customer-content-in-errors.bad.al
Jesper Schulz-Wedde aca3986fd0
Correct security and privacy knowledge guidance (#92)
* Correct security and privacy guidance

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

Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900

* Address security privacy review findings

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

Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900

---------

Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
2026-07-14 11:25:03 +02:00

23 lines
626 B
AL

codeunit 50209 "Privacy Sample GetLastError Bad"
{
procedure AddAttachment()
var
AttachmentFailedErr: Label 'Attachment failed: %1', Comment = '%1 = underlying error';
begin
if not TryAddAttachment() then
Error(StrSubstNo(AttachmentFailedErr, GetLastErrorText()));
end;
procedure AddAttachmentWithConcatenation()
var
AttachmentFailedErr: Label 'Attachment failed: ';
begin
if not TryAddAttachment() then
Error(AttachmentFailedErr + GetLastErrorText());
end;
[TryFunction]
local procedure TryAddAttachment()
begin
end;
}