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>
This commit is contained in:
Jesper Schulz-Wedde 2026-07-14 11:25:03 +02:00 committed by GitHub
parent bfda67a95a
commit aca3986fd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 192 additions and 153 deletions

View file

@ -2,24 +2,21 @@ tableextension 50223 "Sec Sample VTR Good" extends Customer
{
fields
{
field(50223; "System Batch ID"; Code[20])
{
TableRelation = "Sales Header"."No.";
ValidateTableRelation = false;
Editable = false;
}
field(50224; "External Customer Ref"; Code[50])
field(50223; "External Customer Ref"; Code[50])
{
TableRelation = Customer."No.";
ValidateTableRelation = false;
TestTableRelation = false;
trigger OnValidate()
var
Customer: Record Customer;
InvalidExternalReferenceErr: Label 'The external customer reference must not contain spaces.';
begin
if "External Customer Ref" = '' then
exit;
if not Customer.Get("External Customer Ref") then
Error('External customer reference %1 does not exist.', "External Customer Ref");
"External Customer Ref" := CopyStr(
UpperCase(DelChr("External Customer Ref", '<>', ' ')),
1, MaxStrLen("External Customer Ref"));
if StrPos("External Customer Ref", ' ') > 0 then
Error(InvalidExternalReferenceErr);
end;
}
}