bcquality/microsoft/knowledge/privacy/privacy-notice-consent-for-external-data-transfer.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

17 lines
554 B
AL

codeunit 50217 "Privacy Sample Consent Bad"
{
procedure SendDataToExternalService(Customer: Record Customer)
var
HttpClient: HttpClient;
Content: HttpContent;
Payload: JsonObject;
PayloadText: Text;
Response: HttpResponseMessage;
begin
Payload.Add('email', Customer."E-Mail");
Payload.Add('name', Customer.Name);
Payload.WriteTo(PayloadText);
Content.WriteFrom(PayloadText);
HttpClient.Post('https://api.externalservice.com/sync', Content, Response);
end;
}