{"title":"Codeunit 1565 Privacy Notice Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1565-privacy-notice-impl/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":1565,"name":"Privacy Notice Impl.","app":"System Application","url":"https://jonas-paprotka.de/ref/codeunit/1565-privacy-notice-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1565-privacy-notice-impl/source/","path":"src/System Application/App/Privacy Notice/src/PrivacyNoticeImpl.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:1564":{"name":"Privacy Notice Approval","url":"https://jonas-paprotka.de/ref/codeunit/1564-privacy-notice-approval/"},"page:1563":{"name":"Privacy Notice","url":"https://jonas-paprotka.de/ref/page/1563-privacy-notice/"},"codeunit:1565":{"name":"Privacy Notice Impl.","url":"https://jonas-paprotka.de/ref/codeunit/1565-privacy-notice-impl/"},"table:2000000237":{"name":"Privacy Notice","url":"https://jonas-paprotka.de/ref/table/2000000237-privacy-notice/"},"codeunit:1563":{"name":"Privacy Notice","url":"https://jonas-paprotka.de/ref/codeunit/1563-privacy-notice/"},"codeunit:1566":{"name":"System Privacy Notice Reg.","url":"https://jonas-paprotka.de/ref/codeunit/1566-system-privacy-notice-reg/"}},"procs":[{"name":"OnRun","line":42,"kind":"trigger","steps":[[44,"call","CreateDefaultPrivacyNotices",0]]},{"name":"ConfirmPrivacyNoticeApproval","line":69,"kind":"procedure","params":2,"steps":[[81,"call","CreateDefaultPrivacyNoticesInSeparateThread",0],[93,"call","CanCurrentUserApproveForOrganization",0],[94,"call","ShowPrivacyNotice",1],[114,"call","ShowPrivacyNotice",1]]},{"name":"CheckPrivacyNoticeApprovalState","line":122,"kind":"procedure","params":2,"steps":[[134,"call","ShouldApproveByDefault",1]]},{"name":"SetApprovalState","line":172,"kind":"procedure","params":2,"steps":[[176,"call","CreateDefaultPrivacyNotices",0],[177,"call","CanCurrentUserApproveForOrganization",0],[178,"ext","codeunit",1564,"SetApprovalState",3],[180,"call","IsApprovalStateDisagreed",1],[181,"ext","codeunit",1564,"SetApprovalState",3]]},{"name":"ShowOneTimePrivacyNotice","line":189,"kind":"procedure","params":2,"steps":[[194,"call","CreatePrivacyNotice",4],[199,"ext","page",1563,"GetUserApprovalState",0]]},{"name":"CreateDefaultPrivacyNoticesInSeparateThread","line":202,"kind":"procedure","params":0,"steps":[[204,"run","codeunit",1565]]},{"name":"CreateDefaultPrivacyNotices","line":207,"kind":"procedure","params":0,"steps":[[212,"call","TryGetAllPrivacyNotices",1],[225,"write",2000000237,"Insert"],[228,"call","TryCreateDefaultApproval",1]]},{"name":"TryCreateDefaultApproval","line":237,"kind":"procedure","access":"local","params":1,"steps":[[241,"call","ShouldApproveByDefault",1],[242,"ext","codeunit",1564,"SetApprovalState",3]]},{"name":"TryGetAllPrivacyNotices","line":248,"kind":"procedure","access":"local","params":1,"steps":[[252,"ext","codeunit",1563,"OnRegisterPrivacyNotices",1]]},{"name":"CreatePrivacyNotice","line":255,"kind":"procedure","access":"local","params":4,"steps":[[266,"write",2000000237,"Insert"],[267,"call","TryCreateDefaultApproval",1]]},{"name":"ShowPrivacyNotice","line":275,"kind":"procedure","access":"internal","params":1,"steps":[[283,"ext","codeunit",1563,"OnBeforeShowPrivacyNotice",2],[292,"ext","page",1563,"GetUserApprovalState",0],[293,"ext","page",1563,"GetUserApprovalState",0]]},{"name":"ConfirmSystemPrivacyNoticeApproval","line":297,"kind":"procedure","access":"local","params":2,"steps":[[310,"call","ConfirmPrivacyNoticeApproval",1],[314,"call","CreateDefaultPrivacyNoticesInSeparateThread",0],[316,"call","ConfirmPrivacyNoticeApproval",1],[320,"call","CreatePrivacyNotice",2],[322,"call","ConfirmPrivacyNoticeApproval",1]]},{"name":"ShouldApproveByDefault","line":346,"kind":"procedure","access":"local","params":1,"steps":[[352,"call","CheckIntegrationIDEquality",2],[352,"ext","codeunit",1566,"GetMicrosoftLearnID",0],[353,"ext","codeunit",1566,"TryGetMicrosoftLearnInGeoSupport",1],[356,"call","CheckIntegrationIDEquality",2],[356,"ext","codeunit",1566,"GetMicrosoftCopilotID",0],[357,"ext","codeunit",1566,"TryGetMicrosoftCopilotDefaultApproval",1]]},{"name":"IsApprovalStateDisagreed","line":368,"kind":"procedure","params":1,"steps":[[372,"call","CheckPrivacyNoticeApprovalState",1]]},{"name":"GetPrivacyNoticeApprovalState","line":387,"kind":"procedure","access":"local","params":2,"steps":[[392,"call","CheckPrivacyNoticeApprovalState",1]]}]}