{"title":"Codeunit 4306 SOA Session Filter, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/4306-soa-session-filter/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":4306,"name":"SOA Session Filter","app":"Sales Order Agent","url":"https://jonas-paprotka.de/ref/codeunit/4306-soa-session-filter/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/4306-soa-session-filter/source/","path":"src/Apps/W1/SalesOrderAgent/app/src/Validation/SOASessionFilter.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":{"table:4325":{"name":"SOA Setup","url":"https://jonas-paprotka.de/ref/table/4325-soa-setup/"},"codeunit:4305":{"name":"SOA Filters Impl.","url":"https://jonas-paprotka.de/ref/codeunit/4305-soa-filters-impl/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"codeunit:8703":{"name":"Feature Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/"},"codeunit:4400":{"name":"SOA Setup","url":"https://jonas-paprotka.de/ref/codeunit/4400-soa-setup/"}},"procs":[{"name":"SetFiltersOnOpenSalesOrderPage","line":25,"kind":"procedure","access":"local","params":1,"steps":[[28,"call","SetFilterOnSalesHeader",1]]},{"name":"SetFiltersOnOpenSalesQuotesPage","line":33,"kind":"procedure","access":"local","params":1,"steps":[[36,"call","SetFilterOnSalesHeader",1]]},{"name":"VerifySameCustomer","line":49,"kind":"procedure","access":"local","params":1,"steps":[[57,"call","SetFilterOnSalesHeader",1]]},{"name":"OnAfterInitPage","line":63,"kind":"procedure","access":"local","params":4,"steps":[[71,"ext","table",4325,"GetForCurrentAgentSession",0],[74,"ext","codeunit",4305,"GetSecurityFiltersForContacts",1],[79,"ext","codeunit",4305,"GetSecurityFiltersForCustomers",1],[86,"ext","table",18,"GetDefaultLocation",0]]},{"name":"SetFilterOnSalesHeader","line":90,"kind":"procedure","access":"local","params":1,"steps":[[99,"ext","codeunit",4305,"GetSecurityFiltersForContacts",1],[102,"ext","codeunit",4305,"GetSecurityFiltersForCustomers",1],[104,"ext","codeunit",4305,"GetExcludeAllFilter",0],[114,"ext","codeunit",4305,"GetExcludeAllFilter",0],[115,"ext","codeunit",8703,"LogUsage",4],[115,"ext","codeunit",4400,"GetFeatureName",0]]},{"name":"SetFiltersOnOpenContactPage","line":119,"kind":"procedure","access":"local","params":1,"steps":[[124,"ext","codeunit",4305,"GetSecurityFiltersForContacts",1]]},{"name":"SetFiltersOnOpenCustomerPage","line":135,"kind":"procedure","access":"local","params":1,"steps":[[141,"ext","codeunit",4305,"GetSecurityFiltersForContacts",1],[142,"ext","codeunit",4305,"GetSecurityFiltersForCustomers",1]]}]}